mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
fix: handle zero rate actual taxes in calculate_taxes_and_totals
This commit is contained in:
@@ -505,8 +505,9 @@ class calculate_taxes_and_totals:
|
|||||||
|
|
||||||
for idx, d in enumerate(self.doc._item_wise_tax_details):
|
for idx, d in enumerate(self.doc._item_wise_tax_details):
|
||||||
tax = d.get("tax")
|
tax = d.get("tax")
|
||||||
if not tax:
|
if not tax or (tax.get("charge_type") == "Actual" and d.rate == 0):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
tax._total_tax_breakup += d.amount or 0
|
tax._total_tax_breakup += d.amount or 0
|
||||||
tax._last_row_idx = idx
|
tax._last_row_idx = idx
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user