fix: Update condition

This commit is contained in:
Deepesh Garg 2020-02-11 10:18:39 +05:30 committed by GitHub
parent 41e7163476
commit 97669e975d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ from erpnext.accounts.doctype.accounting_dimension.accounting_dimension import g
def post_depreciation_entries(date=None):
# Return if automatic booking of asset depreciation is disabled
if cint(frappe.db.get_single_value("Accounts Settings", "book_asset_depreciation_entry_automatically"))==0:
if not cint(frappe.db.get_single_value("Accounts Settings", "book_asset_depreciation_entry_automatically")):
return
if not date: