mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
patch updated
This commit is contained in:
@@ -9,7 +9,7 @@ def execute():
|
|||||||
jv = webnotes.conn.sql("select distinct parent from `tabJournal Voucher Detail` where docstatus = 1 and ifnull(against_jv, '') != ''")
|
jv = webnotes.conn.sql("select distinct parent from `tabJournal Voucher Detail` where docstatus = 1 and ifnull(against_jv, '') != ''")
|
||||||
|
|
||||||
for d in 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
|
# cancel
|
||||||
get_obj(dt='GL Control').make_gl_entries(jv_obj.doc, jv_obj.doclist, cancel =1, adv_adj = 1)
|
get_obj(dt='GL Control').make_gl_entries(jv_obj.doc, jv_obj.doclist, cancel =1, adv_adj = 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user