mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 15:12:51 +00:00
Incorrect database table (#18558)
Fixed Unknow Column tax_type error on offline pos
This commit is contained in:
@@ -307,7 +307,7 @@ def get_item_tax_data():
|
|||||||
# example: {'Consulting Services': {'Excise 12 - TS': '12.000'}}
|
# example: {'Consulting Services': {'Excise 12 - TS': '12.000'}}
|
||||||
|
|
||||||
itemwise_tax = {}
|
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:
|
for tax in taxes:
|
||||||
if tax.parent not in itemwise_tax:
|
if tax.parent not in itemwise_tax:
|
||||||
|
|||||||
Reference in New Issue
Block a user