mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 00:37:15 +00:00
Merge pull request #42730 from frappe/mergify/bp/version-15-hotfix/pr-42729
fix: cancel Journal Entry on cancellation of asset value adjustment (backport #42729)
This commit is contained in:
@@ -56,6 +56,7 @@ class AssetValueAdjustment(Document):
|
||||
)
|
||||
|
||||
def on_cancel(self):
|
||||
frappe.get_doc("Journal Entry", self.journal_entry).cancel()
|
||||
self.update_asset(self.current_asset_value)
|
||||
add_asset_activity(
|
||||
self.asset,
|
||||
|
||||
Reference in New Issue
Block a user