commit | f90df7da02bdb2ae43e00a92c0064a76398354e8 | [log] [tgz] |
---|---|---|
author | Anand Doshi <anand@erpnext.com> | Mon Jul 29 19:53:44 2013 +0530 |
committer | Anand Doshi <anand@erpnext.com> | Mon Jul 29 19:53:44 2013 +0530 |
tree | 74b6263305067dc7b01a8761e90b8de6aedab5da | |
parent | 1f996c31217682c3cbf2d38ce79b5ed5749c1cdb [diff] [blame] |
[fix] [minor] if customer_account is mentioned in POS Settings, also fetch customer_name
diff --git a/selling/utils.py b/selling/utils.py index bf4f081..d24a350 100644 --- a/selling/utils.py +++ b/selling/utils.py
@@ -190,7 +190,7 @@ 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):