mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-28 11:08:32 +00:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user