Skip to content

Commit

Permalink
fix: default taxable value for item not found in item list
Browse files Browse the repository at this point in the history
(cherry picked from commit 5885978)
  • Loading branch information
ljain112 authored and mergify[bot] committed Feb 27, 2024
1 parent 84a359c commit 7e43f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/taxes_and_totals.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ def get_itemised_tax_breakup_data(doc):
for item_code, taxes in itemised_tax.items():
itemised_tax_data.append(
frappe._dict(
{"item": item_code, "taxable_amount": itemised_taxable_amount.get(item_code), **taxes}
{"item": item_code, "taxable_amount": itemised_taxable_amount.get(item_code, 0), **taxes}
)
)

Expand Down

0 comments on commit 7e43f6b

Please sign in to comment.