From 144ba186d3f2deacf7a38639dff7fa864dc591ed Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 17 Jan 2013 17:20:08 +0530 Subject: [PATCH] fixes in c-form --- accounts/doctype/c_form/c_form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/doctype/c_form/c_form.py b/accounts/doctype/c_form/c_form.py index bff68f7c1c..1bea635c92 100644 --- a/accounts/doctype/c_form/c_form.py +++ b/accounts/doctype/c_form/c_form.py @@ -59,7 +59,7 @@ class DocType: webnotes.conn.sql("""update `tabSales Invoice` set c_form_no = '', modified = %s where name not in (%s) and ifnull(c_form_no, '') = %s""" % - ('%s', ', '.join(['%s'*len(inv)]), '%s'), + ('%s', ', '.join(['%s']*len(inv)), '%s'), tuple([self.doc.modified] + inv + [self.doc.name]), debug=1) else: webnotes.msgprint("Please enter atleast 1 invoice in the table", raise_exception=1)