[fix] [minor] if customer_account is mentioned in POS Settings, also fetch customer_name

This commit is contained in:
Anand Doshi
2013-07-29 19:53:44 +05:30
parent 1f996c3121
commit f90df7da02
2 changed files with 8 additions and 2 deletions

View File

@@ -190,7 +190,7 @@ def get_pos_settings(company):
if not pos_settings:
pos_settings = webnotes.conn.sql("""select * from `tabPOS Setting`
where ifnull(user,'') = '' and company = %s""", company, as_dict=1)
return pos_settings and pos_settings[0] or None
def apply_pos_settings(pos_settings, opts):