From 30315aba37bb86eb2ecf2805c77b9ef2316d26ba Mon Sep 17 00:00:00 2001 From: ljain112 Date: Mon, 26 Feb 2024 18:41:33 +0530 Subject: [PATCH] fix: default taxable value for item not found in item list (cherry picked from commit 5885978fc2f829b064568e8e2b6a28143f69218c) --- erpnext/controllers/taxes_and_totals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/taxes_and_totals.py b/erpnext/controllers/taxes_and_totals.py index e24618af103..2881c15a14d 100644 --- a/erpnext/controllers/taxes_and_totals.py +++ b/erpnext/controllers/taxes_and_totals.py @@ -1005,7 +1005,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} ) )