mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 06:22:12 +00:00
fix(minor): reorder expected value validation
(cherry picked from commit 0a6bf1559b)
This commit is contained in:
@@ -125,7 +125,6 @@ class Asset(AccountsController):
|
|||||||
self.validate_cost_center()
|
self.validate_cost_center()
|
||||||
self.set_missing_values()
|
self.set_missing_values()
|
||||||
self.validate_gross_and_purchase_amount()
|
self.validate_gross_and_purchase_amount()
|
||||||
self.validate_expected_value_after_useful_life()
|
|
||||||
self.validate_finance_books()
|
self.validate_finance_books()
|
||||||
|
|
||||||
if not self.split_from:
|
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."
|
"Asset Depreciation Schedules created:<br>{0}<br><br>Please check, edit if needed, and submit the Asset."
|
||||||
).format(asset_depr_schedules_links)
|
).format(asset_depr_schedules_links)
|
||||||
)
|
)
|
||||||
|
self.validate_expected_value_after_useful_life()
|
||||||
self.set_total_booked_depreciations()
|
self.set_total_booked_depreciations()
|
||||||
self.total_asset_cost = self.gross_purchase_amount
|
self.total_asset_cost = self.gross_purchase_amount
|
||||||
self.status = self.get_status()
|
self.status = self.get_status()
|
||||||
|
|||||||
Reference in New Issue
Block a user