mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
automatic booking of asset depreciation fix
Stop Automatic deprecation is not working
This commit is contained in:
committed by
GitHub
parent
d8e57d3d5a
commit
41e7163476
@@ -10,7 +10,7 @@ from erpnext.accounts.doctype.accounting_dimension.accounting_dimension import g
|
|||||||
|
|
||||||
def post_depreciation_entries(date=None):
|
def post_depreciation_entries(date=None):
|
||||||
# Return if automatic booking of asset depreciation is disabled
|
# Return if automatic booking of asset depreciation is disabled
|
||||||
if not cint(frappe.db.get_value("Accounts Settings", None, "book_asset_depreciation_entry_automatically")):
|
if cint(frappe.db.get_single_value("Accounts Settings", "book_asset_depreciation_entry_automatically"))==0:
|
||||||
return
|
return
|
||||||
|
|
||||||
if not date:
|
if not date:
|
||||||
|
|||||||
Reference in New Issue
Block a user