fix: Error while fetching item taxes
diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py
index c64084f..e0a0c4a 100644
--- a/erpnext/stock/get_item_details.py
+++ b/erpnext/stock/get_item_details.py
@@ -438,6 +438,10 @@
@frappe.whitelist()
def get_item_tax_info(company, tax_category, item_codes, item_rates=None, item_tax_templates=None):
out = {}
+
+ if not item_tax_templates:
+ item_tax_templates = {}
+
if isinstance(item_codes, (str,)):
item_codes = json.loads(item_codes)