mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 07:20:26 +00:00
Merge pull request #43428 from blaggacao/fix/no-undue-tax-rounding
fix!: don't round unduly
This commit is contained in:
@@ -514,7 +514,7 @@ class calculate_taxes_and_totals:
|
|||||||
if tax.item_wise_tax_detail.get(key):
|
if tax.item_wise_tax_detail.get(key):
|
||||||
item_wise_tax_amount += tax.item_wise_tax_detail[key][1]
|
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):
|
def round_off_totals(self, tax):
|
||||||
if tax.account_head in frappe.flags.round_off_applicable_accounts:
|
if tax.account_head in frappe.flags.round_off_applicable_accounts:
|
||||||
|
|||||||
Reference in New Issue
Block a user