Reload gl mapper patches

This commit is contained in:
Nabin Hait 2011-12-26 12:28:14 +05:30
parent 16aacdfeeb
commit a0778fec61
2 changed files with 6 additions and 4 deletions

View 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')

View File

@ -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, '') != ''")