Merge pull request #43428 from blaggacao/fix/no-undue-tax-rounding

fix!: don't round unduly
This commit is contained in:
David Arnold
2024-09-30 17:22:02 +02:00
committed by GitHub

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: