mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-06 20:13:15 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user