From ef37e6aa1637d1967c4b305fbde80c2dfa2a5b55 Mon Sep 17 00:00:00 2001 From: ljain112 Date: Thu, 20 Nov 2025 18:13:30 +0530 Subject: [PATCH] fix: handle zero rate actual taxes in calculate_taxes_and_totals --- erpnext/controllers/taxes_and_totals.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/controllers/taxes_and_totals.py b/erpnext/controllers/taxes_and_totals.py index 3b42b7d0c1d..69b869b093c 100644 --- a/erpnext/controllers/taxes_and_totals.py +++ b/erpnext/controllers/taxes_and_totals.py @@ -505,8 +505,9 @@ class calculate_taxes_and_totals: for idx, d in enumerate(self.doc._item_wise_tax_details): tax = d.get("tax") - if not tax: + if not tax or (tax.get("charge_type") == "Actual" and d.rate == 0): continue + tax._total_tax_breakup += d.amount or 0 tax._last_row_idx = idx