mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 20:18:27 +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):
|
||||
"""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 (
|
||||
|
||||
Reference in New Issue
Block a user