Reload gl mapper patches
This commit is contained in:
parent
16aacdfeeb
commit
a0778fec61
6
erpnext/patches/reload_gl_mapper.py
Normal file
6
erpnext/patches/reload_gl_mapper.py
Normal file
@ -0,0 +1,6 @@
|
||||
def execute():
|
||||
import webnotes
|
||||
from webnotes.modules.module_manager import reload_doc
|
||||
|
||||
# reload jv gl mapper
|
||||
reload_doc('accounts', 'GL Mapper', 'Journal Voucher')
|
@ -1,11 +1,7 @@
|
||||
def execute():
|
||||
import webnotes
|
||||
from webnotes.modules.module_manager import reload_doc
|
||||
from webnotes.model.code import get_obj
|
||||
|
||||
# reload jv gl mapper
|
||||
reload_doc('accounts', 'GL Mapper', 'Journal Voucher')
|
||||
|
||||
# select jv where against_jv exists
|
||||
jv = webnotes.conn.sql("select distinct parent from `tabJournal Voucher Detail` where docstatus = 1 and ifnull(against_jv, '') != ''")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user