mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fixes: fetching from pos setting
This commit is contained in:
@@ -321,9 +321,8 @@ class DocType(SellingController):
|
|||||||
dtl = webnotes.conn.sql("""select * from `tabPOS Setting` where user = %s
|
dtl = webnotes.conn.sql("""select * from `tabPOS Setting` where user = %s
|
||||||
and company = %s""", (webnotes.session['user'], self.doc.company), as_dict=1)
|
and company = %s""", (webnotes.session['user'], self.doc.company), as_dict=1)
|
||||||
if not dtl:
|
if not dtl:
|
||||||
dtl = webnotes.conn.sql("""select income_account, warehouse, cost_center,
|
dtl = webnotes.conn.sql("""select * from `tabPOS Setting`
|
||||||
expense_account from `tabPOS Setting` where ifnull(user,'') = ''
|
where ifnull(user,'') = '' and company = %s""", self.doc.company, as_dict=1)
|
||||||
and company = %s""", self.doc.company, as_dict=1)
|
|
||||||
self._pos_details = dtl
|
self._pos_details = dtl
|
||||||
|
|
||||||
return self._pos_details
|
return self._pos_details
|
||||||
|
|||||||
Reference in New Issue
Block a user