mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-02 01:54:19 +00:00
Merge pull request #43098 from khushi8112/reorder-expected-value-validation
fix(minor): reorder expected value validation
This commit is contained in:
@@ -125,7 +125,6 @@ class Asset(AccountsController):
|
||||
self.validate_cost_center()
|
||||
self.set_missing_values()
|
||||
self.validate_gross_and_purchase_amount()
|
||||
self.validate_expected_value_after_useful_life()
|
||||
self.validate_finance_books()
|
||||
|
||||
if not self.split_from:
|
||||
@@ -146,6 +145,7 @@ class Asset(AccountsController):
|
||||
"Asset Depreciation Schedules created:<br>{0}<br><br>Please check, edit if needed, and submit the Asset."
|
||||
).format(asset_depr_schedules_links)
|
||||
)
|
||||
self.validate_expected_value_after_useful_life()
|
||||
self.set_total_booked_depreciations()
|
||||
self.total_asset_cost = self.gross_purchase_amount
|
||||
self.status = self.get_status()
|
||||
|
||||
Reference in New Issue
Block a user