Merge pull request #40170 from frappe/mergify/bp/version-15-hotfix/pr-40137

fix: default taxable value for item not found in item list (#40137)
This commit is contained in:
Deepesh Garg 2024-02-28 08:24:15 +05:30 committed by GitHub
commit 930df21a5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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