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.
This commit is contained in:
David
2024-09-29 16:52:11 +02:00
parent 8e33e0e1d2
commit eeb8aba950

View File

@@ -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: