From 9ea3e1e8483db5309f0bc58cf9940c88ff1cbf57 Mon Sep 17 00:00:00 2001 From: Ejaaz Khan Date: Tue, 18 Nov 2025 11:40:20 +0530 Subject: [PATCH] fix: NoneType issue on item tax rate --- .../v15_0/migrate_old_item_wise_tax_detail_data_to_table.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/patches/v15_0/migrate_old_item_wise_tax_detail_data_to_table.py b/erpnext/patches/v15_0/migrate_old_item_wise_tax_detail_data_to_table.py index 186d470e01a..8229ea7ef46 100644 --- a/erpnext/patches/v15_0/migrate_old_item_wise_tax_detail_data_to_table.py +++ b/erpnext/patches/v15_0/migrate_old_item_wise_tax_detail_data_to_table.py @@ -254,10 +254,10 @@ class ItemTax: item_tax_rates = frappe.parse_json(item.item_tax_rate) - if tax_row.account_head in item_tax_rates: + if item_tax_rates and tax_row.account_head in item_tax_rates: return item_tax_rates[tax_row.account_head] - return tax_row.rate + return flt(tax_row.rate) def get_item_tax_doc(item, tax, rate, tax_value, idx, precision=2):