fix: default taxable value for item not found in item list

(cherry picked from commit 5885978fc2f829b064568e8e2b6a28143f69218c)
This commit is contained in:
ljain112 2024-02-26 18:41:33 +05:30 committed by Mergify
parent 84a359c760
commit 7e43f6b7e0

View File

@ -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}
)
)