Added a settings in Accounts Settings to disable booking depreciation entry automatically

This commit is contained in:
Nabin Hait
2017-04-18 14:02:07 +05:30
parent f59920500c
commit 117be7ddd5
6 changed files with 99 additions and 6 deletions

View File

@@ -18,6 +18,9 @@ def work():
# fixed_asset.work() already run
return
# Enable booking asset depreciation entry automatically
frappe.db.set_value("Accounts Settings", None, "book_asset_depreciation_entry_automatically", 1)
# post depreciation entries as on today
post_depreciation_entries()