fix: use current_tax_amount value for base_total_taxes_and_charges

(cherry picked from commit 5a3fcbedb5)
(cherry picked from commit 7ed3c6d18a)
This commit is contained in:
Pugazhendhi Velu
2025-11-11 10:26:31 +00:00
committed by Mergify
parent b7e4fb9d83
commit c082edabf4

View File

@@ -1800,7 +1800,7 @@ class PaymentEntry(AccountsController):
else:
self.total_taxes_and_charges += current_tax_amount
self.base_total_taxes_and_charges += tax.base_tax_amount
self.base_total_taxes_and_charges += current_tax_amount
if self.get("taxes"):
self.paid_amount_after_tax = self.get("taxes")[-1].base_total