From 1ba4bd4485d1808fed0ec51e8f2f6b48c75aae53 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 19 Dec 2012 17:05:51 +0530 Subject: [PATCH] added webclient.py and some misc fixes --- selling/doctype/customer/customer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selling/doctype/customer/customer.py b/selling/doctype/customer/customer.py index 158525c1e7e..a3c9612419b 100644 --- a/selling/doctype/customer/customer.py +++ b/selling/doctype/customer/customer.py @@ -132,7 +132,9 @@ class DocType(TransactionBase): msgprint("Please Select Company under which you want to create account head") def update_credit_days_limit(self): - sql("update tabAccount set credit_days = '%s', credit_limit = '%s' where name = '%s'" % (self.doc.credit_days, self.doc.credit_limit, self.doc.name + " - " + self.get_company_abbr())) + sql("""update tabAccount set credit_days = %s, credit_limit = %s + where name = %s""", (self.doc.credit_days or 0, self.doc.credit_limit or 0, + self.doc.name + " - " + self.get_company_abbr())) def create_lead_address_contact(self): if self.doc.lead_name: