chore: should prepare schedule if not draft

(cherry picked from commit 75386e3653)
This commit is contained in:
anandbaburajan
2023-02-25 21:17:18 +05:30
committed by Mergify
parent 304e6bb996
commit 9a607b9bd0

View File

@@ -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