From 19da7b8bdf7ff636c13bf6d0112baf2221961ca2 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 26 Mar 2013 15:47:46 +0530 Subject: [PATCH] fixes: fetching from pos setting --- accounts/doctype/sales_invoice/sales_invoice.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/accounts/doctype/sales_invoice/sales_invoice.py b/accounts/doctype/sales_invoice/sales_invoice.py index 246dadad32..9b17fc0e61 100644 --- a/accounts/doctype/sales_invoice/sales_invoice.py +++ b/accounts/doctype/sales_invoice/sales_invoice.py @@ -321,9 +321,8 @@ class DocType(SellingController): dtl = webnotes.conn.sql("""select * from `tabPOS Setting` where user = %s and company = %s""", (webnotes.session['user'], self.doc.company), as_dict=1) if not dtl: - dtl = webnotes.conn.sql("""select income_account, warehouse, cost_center, - expense_account from `tabPOS Setting` where ifnull(user,'') = '' - and company = %s""", self.doc.company, as_dict=1) + dtl = webnotes.conn.sql("""select * from `tabPOS Setting` + where ifnull(user,'') = '' and company = %s""", self.doc.company, as_dict=1) self._pos_details = dtl return self._pos_details