fixes: fetching from pos setting
This commit is contained in:
parent
495db08104
commit
7483485ac0
@ -318,9 +318,8 @@ class DocType(SellingController):
|
|||||||
@property
|
@property
|
||||||
def pos_details(self):
|
def pos_details(self):
|
||||||
if not hasattr(self, "_pos_details"):
|
if not hasattr(self, "_pos_details"):
|
||||||
dtl = webnotes.conn.sql("""select income_account, warehouse, cost_center,
|
dtl = webnotes.conn.sql("""select * from `tabPOS Setting` where user = %s
|
||||||
expense_account from `tabPOS Setting` where user = %s and company = %s""",
|
and company = %s""", (webnotes.session['user'], self.doc.company), as_dict=1)
|
||||||
(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 income_account, warehouse, cost_center,
|
||||||
expense_account from `tabPOS Setting` where ifnull(user,'') = ''
|
expense_account from `tabPOS Setting` where ifnull(user,'') = ''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user