fix: cancelling of asset value adjustement (#24193)
This commit is contained in:
parent
9f1e1f6c23
commit
60a1d25196
@ -21,9 +21,6 @@ class AssetValueAdjustment(Document):
|
||||
self.reschedule_depreciations(self.new_asset_value)
|
||||
|
||||
def on_cancel(self):
|
||||
if self.journal_entry:
|
||||
frappe.throw(_("Cancel the journal entry {0} first").format(self.journal_entry))
|
||||
|
||||
self.reschedule_depreciations(self.current_asset_value)
|
||||
|
||||
def validate_date(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user