Incorrect database table (#18558)

Fixed Unknow Column tax_type error on offline pos
This commit is contained in:
Anastes Mp 2019-08-21 16:53:06 +05:30 committed by Nabin Hait
parent 109a07b834
commit a6c6e02c49

View File

@ -307,7 +307,7 @@ def get_item_tax_data():
# example: {'Consulting Services': {'Excise 12 - TS': '12.000'}}
itemwise_tax = {}
taxes = frappe.db.sql(""" select parent, tax_type, tax_rate from `tabItem Tax`""", as_dict=1)
taxes = frappe.db.sql(""" select parent, tax_type, tax_rate from `tabItem Tax Template Detail`""", as_dict=1)
for tax in taxes:
if tax.parent not in itemwise_tax: