[minor] make gl entry through bean and testcases

This commit is contained in:
Nabin Hait
2013-08-23 15:17:36 +05:30
parent a391606a8f
commit aeba24ee81
10 changed files with 69 additions and 27 deletions

View File

@@ -2,6 +2,9 @@ import webnotes
from webnotes.utils import cint
def execute():
import patches.september_2012.repost_stock
patches.september_2012.repost_stock.execute()
import patches.march_2013.p08_create_aii_accounts
patches.march_2013.p08_create_aii_accounts.execute()

View File

@@ -7,5 +7,5 @@ def execute():
webnotes.conn.sql("""delete from `tabStock Ledger Entry`
where ifnull(is_cancelled, 'No') = 'Yes'""")
webnotes.reload_doc("stock", "doctype", "gl_entry")
webnotes.reload_doc("accounts", "doctype", "gl_entry")
webnotes.conn.sql("""delete from `tabGL Entry` where ifnull(is_cancelled, 'No') = 'Yes'""")