mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
Update code to fix issue #erpnext WN-SUP25349 : ValueError: max() arg is an empty sequence. (#9025)
This commit is contained in:
@@ -19,6 +19,7 @@ class Asset(Document):
|
|||||||
self.validate_asset_values()
|
self.validate_asset_values()
|
||||||
self.make_depreciation_schedule()
|
self.make_depreciation_schedule()
|
||||||
self.set_accumulated_depreciation()
|
self.set_accumulated_depreciation()
|
||||||
|
if self.get("schedules"):
|
||||||
self.validate_expected_value_after_useful_life()
|
self.validate_expected_value_after_useful_life()
|
||||||
# Validate depreciation related accounts
|
# Validate depreciation related accounts
|
||||||
get_depreciation_accounts(self)
|
get_depreciation_accounts(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user