patch updated

This commit is contained in:
Nabin Hait 2011-12-26 11:08:32 +05:30
parent 40deced91c
commit a0286e986e

View File

@ -9,7 +9,7 @@ def execute():
jv = webnotes.conn.sql("select distinct parent from `tabJournal Voucher Detail` where docstatus = 1 and ifnull(against_jv, '') != ''")
for d in jv:
jv_obj = get_obj('Journal Voucher', d.journal_voucher, with_children=1)
jv_obj = get_obj('Journal Voucher', d[0], with_children=1)
# cancel
get_obj(dt='GL Control').make_gl_entries(jv_obj.doc, jv_obj.doclist, cancel =1, adv_adj = 1)