mirror of
https://github.com/frappe/erpnext.git
synced 2025-12-03 18:35:36 +00:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user