mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
Reload gl mapper patches
This commit is contained in:
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():
|
def execute():
|
||||||
import webnotes
|
import webnotes
|
||||||
from webnotes.modules.module_manager import reload_doc
|
|
||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
|
|
||||||
# reload jv gl mapper
|
|
||||||
reload_doc('accounts', 'GL Mapper', 'Journal Voucher')
|
|
||||||
|
|
||||||
# select jv where against_jv exists
|
# select jv where against_jv exists
|
||||||
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, '') != ''")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user