mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 15:32:14 +00:00
fix: cancel Journal Entry on cancellation of asset value adjustment
(cherry picked from commit 4b7f1f2d67)
This commit is contained in:
@@ -56,6 +56,7 @@ class AssetValueAdjustment(Document):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def on_cancel(self):
|
def on_cancel(self):
|
||||||
|
frappe.get_doc("Journal Entry", self.journal_entry).cancel()
|
||||||
self.update_asset(self.current_asset_value)
|
self.update_asset(self.current_asset_value)
|
||||||
add_asset_activity(
|
add_asset_activity(
|
||||||
self.asset,
|
self.asset,
|
||||||
|
|||||||
Reference in New Issue
Block a user