From cc798f4e0d28625f9c4adea21403078e827fe682 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 11 Oct 2012 12:43:28 +0530 Subject: [PATCH] fixed syntax error in journal voucher --- accounts/doctype/journal_voucher/journal_voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/doctype/journal_voucher/journal_voucher.py b/accounts/doctype/journal_voucher/journal_voucher.py index 7ba83aa04f..36a5bf9bfb 100644 --- a/accounts/doctype/journal_voucher/journal_voucher.py +++ b/accounts/doctype/journal_voucher/journal_voucher.py @@ -385,7 +385,7 @@ class DocType: get_obj(dt='GL Control').make_gl_entries(self.doc, self.doclist, cancel=1) def check_tds_payment_voucher(self): - tdsp = sql("select parent from `tabTDS Payment Detail` where voucher_no = %s and docstatus = 1 and parent not like 'old%'", self.doc.name) + tdsp = sql("select parent from `tabTDS Payment Detail` where voucher_no = %s and docstatus = 1 and parent not like 'old%%'", self.doc.name) if tdsp: msgprint("TDS Payment voucher '%s' has been made against this voucher. Please cancel the payment voucher to proceed." % (tdsp and tdsp[0][0] or '')) raise Exception \ No newline at end of file