From decf51de4a4c2761151cd4e060b36846bdb07d75 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 22 Oct 2013 23:55:34 +0530 Subject: [PATCH] [patch] delete gl entries for cancelled vouchers --- patches/october_2012/fix_cancelled_gl_entries.py | 1 + 1 file changed, 1 insertion(+) diff --git a/patches/october_2012/fix_cancelled_gl_entries.py b/patches/october_2012/fix_cancelled_gl_entries.py index b610985dcd..475ea1c053 100644 --- a/patches/october_2012/fix_cancelled_gl_entries.py +++ b/patches/october_2012/fix_cancelled_gl_entries.py @@ -11,6 +11,7 @@ def execute(): and docstatus=2""" % (entry['voucher_type'], "%s"), entry['voucher_no']) is_cancelled = docstatus and 'Yes' or None if is_cancelled: + print entry['voucher_type'], entry['voucher_no'] webnotes.conn.sql("""update `tabGL Entry` set is_cancelled = 'Yes' where voucher_type = %s and voucher_no = %s""", (entry['voucher_type'], entry['voucher_no']))