mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +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()
|
old_asset_doc = self.get_doc_before_save()
|
||||||
|
|
||||||
|
if not old_asset_doc:
|
||||||
|
return True
|
||||||
|
|
||||||
if (
|
if (
|
||||||
old_asset_doc.gross_purchase_amount != self.gross_purchase_amount
|
old_asset_doc.gross_purchase_amount != self.gross_purchase_amount
|
||||||
or old_asset_doc.opening_accumulated_depreciation != self.opening_accumulated_depreciation
|
or old_asset_doc.opening_accumulated_depreciation != self.opening_accumulated_depreciation
|
||||||
|
|||||||
Reference in New Issue
Block a user