[patch] perpetual accounting patch

This commit is contained in:
Nabin Hait
2013-08-06 15:55:44 +05:30
parent 73d04b155c
commit 939b1523e9
5 changed files with 36 additions and 5 deletions

View File

@@ -19,8 +19,7 @@ import webnotes
from webnotes.utils import cint
def execute():
aii_enabled = cint(webnotes.conn.get_value("Global Defaults", None,
"auto_inventory_accounting"))
aii_enabled = cint(webnotes.defaults.get_global_default("perpetual_accounting"))
if aii_enabled:
webnotes.conn.sql("""update `tabGL Entry` gle set is_cancelled = 'Yes'