Skip to content

Commit

Permalink
fix: cancel Journal Entry on cancellation of asset value adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
khushi8112 committed Aug 12, 2024
1 parent deccb00 commit 4b7f1f2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def on_submit(self):
)

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,
Expand Down

0 comments on commit 4b7f1f2

Please sign in to comment.