Merge pull request #50682 from frappe/mergify/bp/version-16-beta/pr-50609

fix: handle empty item_tax_rate in ItemTax class (backport #50609)
This commit is contained in:
Lakshit Jain
2025-11-21 18:46:38 +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 tax_row.account_head in item_tax_rates:
return item_tax_rates[tax_row.account_head]