mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-28 17:15:10 +00:00
fix: incorrect taxable_amount on other_charges_calculation
This commit is contained in:
@@ -1103,11 +1103,8 @@ def get_itemised_tax_breakup_data(doc):
|
||||
itemised_tax = get_itemised_tax(doc.taxes)
|
||||
itemised_tax_data = []
|
||||
for item_code, taxes in itemised_tax.items():
|
||||
itemised_tax_data.append(
|
||||
frappe._dict(
|
||||
{"item": item_code, "taxable_amount": sum(tax.net_amount for tax in taxes.values()), **taxes}
|
||||
)
|
||||
)
|
||||
taxable_amount = next(iter(taxes.values())).get("net_amount")
|
||||
itemised_tax_data.append(frappe._dict({"item": item_code, "taxable_amount": taxable_amount, **taxes}))
|
||||
|
||||
return itemised_tax_data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user