fix: Error while fetching item taxes

This commit is contained in:
Deepesh Garg 2021-06-25 13:34:00 +05:30
parent 58daf5f916
commit 2ca9b765ef

View File

@ -438,6 +438,10 @@ def get_barcode_data(items_list):
@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)