Merge pull request #40137 from ljain112/fix-tax-breakup
fix: default taxable value for item not found in item list
diff --git a/erpnext/controllers/taxes_and_totals.py b/erpnext/controllers/taxes_and_totals.py
index 3d7a947..69d8caa 100644
--- a/erpnext/controllers/taxes_and_totals.py
+++ b/erpnext/controllers/taxes_and_totals.py
@@ -1029,7 +1029,7 @@
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}
)
)