OrderChangeManager: Fix invoice regeneration on tax rate change

This commit is contained in:
Raphael Michel
2023-03-17 13:41:18 +01:00
parent 3df61b8fb5
commit d0f603283b
2 changed files with 15 additions and 0 deletions

View File

@@ -1609,6 +1609,7 @@ class OrderChangeManager:
override_tax_rate=new_rate)
self._totaldiff += new_tax.gross - pos.price
self._operations.append(self.PriceOperation(pos, new_tax, new_tax.gross - pos.price))
self._invoice_dirty = True
def cancel_fee(self, fee: OrderFee):
self._totaldiff -= fee.value