mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 01:25:07 +00:00
chore: should prepare schedule if not draft
(cherry picked from commit 75386e3653)
This commit is contained in:
@@ -99,6 +99,9 @@ class Asset(AccountsController):
|
||||
|
||||
old_asset_doc = self.get_doc_before_save()
|
||||
|
||||
if not old_asset_doc:
|
||||
return True
|
||||
|
||||
if (
|
||||
old_asset_doc.gross_purchase_amount != self.gross_purchase_amount
|
||||
or old_asset_doc.opening_accumulated_depreciation != self.opening_accumulated_depreciation
|
||||
|
||||
Reference in New Issue
Block a user