Merge pull request #50609 from karm1000/patch/handle-empty-item-tax-rate

fix: handle empty item_tax_rate in ItemTax class
This commit is contained in:
Lakshit Jain
2025-11-21 18:27:02 +05:30
committed by GitHub

View File

@@ -256,7 +256,7 @@ class ItemTax:
# NOTE: Use item tax rate as same item code
# could have different tax rates in same invoice
item_tax_rates = frappe.parse_json(item.item_tax_rate)
item_tax_rates = frappe.parse_json(item.item_tax_rate or {})
if item_tax_rates and tax_row.account_head in item_tax_rates:
return item_tax_rates[tax_row.account_head]