Merge pull request #7490 from rohitwaghchaure/pos_discount_issue

[Fix] Discount not working in the POS
This commit is contained in:
Nabin Hait
2017-01-16 11:44:50 +05:30
committed by GitHub

View File

@@ -43,7 +43,11 @@ def get_pos_data():
} }
def get_meta(): def get_meta():
doctype_meta = {'customer': frappe.get_meta('Customer')} doctype_meta = {
'customer': frappe.get_meta('Customer'),
'invoice': frappe.get_meta('Sales Invoice')
}
for row in frappe.get_all('DocField', fields = ['fieldname', 'options'], for row in frappe.get_all('DocField', fields = ['fieldname', 'options'],
filters = {'parent': 'Sales Invoice', 'fieldtype': 'Table'}): filters = {'parent': 'Sales Invoice', 'fieldtype': 'Table'}):
doctype_meta[row.fieldname] = frappe.get_meta(row.options) doctype_meta[row.fieldname] = frappe.get_meta(row.options)