From a81010a5b31e202abd1dcbe77c43f0c8b9be8e49 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 17 Jan 2013 17:25:55 +0530 Subject: [PATCH] removed debug mode --- accounts/doctype/c_form/c_form.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts/doctype/c_form/c_form.py b/accounts/doctype/c_form/c_form.py index 1bea635c926..4575653699c 100644 --- a/accounts/doctype/c_form/c_form.py +++ b/accounts/doctype/c_form/c_form.py @@ -55,12 +55,12 @@ class DocType: if inv: webnotes.conn.sql("""update `tabSales Invoice` set c_form_no=%s, modified=%s where name in (%s)""" % ('%s', '%s', ', '.join(['%s'] * len(inv))), - tuple([self.doc.name, self.doc.modified] + inv), debug=1) + tuple([self.doc.name, self.doc.modified] + inv)) 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'), - tuple([self.doc.modified] + inv + [self.doc.name]), debug=1) + tuple([self.doc.modified] + inv + [self.doc.name])) else: webnotes.msgprint("Please enter atleast 1 invoice in the table", raise_exception=1)