From eeb8aba950d2948a3c8118a9b9d905de762c128b Mon Sep 17 00:00:00 2001 From: David Date: Sun, 29 Sep 2024 16:52:11 +0200 Subject: [PATCH] fix!: don't round unduly BREAKING: If you previously relied on the undue rounding of the tax amount within the item wise tax detail, revise your code and config. --- erpnext/controllers/taxes_and_totals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/taxes_and_totals.py b/erpnext/controllers/taxes_and_totals.py index b40af6a2ac0..217f3449df9 100644 --- a/erpnext/controllers/taxes_and_totals.py +++ b/erpnext/controllers/taxes_and_totals.py @@ -514,7 +514,7 @@ class calculate_taxes_and_totals: if tax.item_wise_tax_detail.get(key): item_wise_tax_amount += tax.item_wise_tax_detail[key][1] - tax.item_wise_tax_detail[key] = [tax_rate, flt(item_wise_tax_amount)] + tax.item_wise_tax_detail[key] = [tax_rate, item_wise_tax_amount] def round_off_totals(self, tax): if tax.account_head in frappe.flags.round_off_applicable_accounts: