mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
fix: additional check to regenerate depreciation
This commit is contained in:
@@ -186,7 +186,7 @@ class Asset(AccountsController):
|
|||||||
def has_depreciation_settings_changed(self, existing_doc, fb_row):
|
def has_depreciation_settings_changed(self, existing_doc, fb_row):
|
||||||
"""Check if depreciation calculation settings have changed"""
|
"""Check if depreciation calculation settings have changed"""
|
||||||
|
|
||||||
if fb_row.depreciation_method != "Manual":
|
if not existing_doc.get("depreciation_schedule") or fb_row.depreciation_method != "Manual":
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user