Skip to content

Commit

Permalink
fix: cancel asset capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
nabinhait authored Feb 12, 2024
1 parent f2d094d commit 2438600
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ def cancel_target_asset(self):
asset_doc.db_set("capitalized_in", None)
if asset_doc.docstatus == 1:
asset_doc.cancel()
elif asset_doc.docstatus == 0:
asset_doc.delete()

def set_title(self):
self.title = self.target_asset_name or self.target_item_name or self.target_item_code
Expand Down

0 comments on commit 2438600

Please sign in to comment.