mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 03:35:43 +00:00
fix: cancel asset capitalization
This commit is contained in:
@@ -90,8 +90,6 @@ class AssetCapitalization(StockController):
|
|||||||
asset_doc.db_set("capitalized_in", None)
|
asset_doc.db_set("capitalized_in", None)
|
||||||
if asset_doc.docstatus == 1:
|
if asset_doc.docstatus == 1:
|
||||||
asset_doc.cancel()
|
asset_doc.cancel()
|
||||||
elif asset_doc.docstatus == 0:
|
|
||||||
asset_doc.delete()
|
|
||||||
|
|
||||||
def set_title(self):
|
def set_title(self):
|
||||||
self.title = self.target_asset_name or self.target_item_name or self.target_item_code
|
self.title = self.target_asset_name or self.target_item_name or self.target_item_code
|
||||||
|
|||||||
Reference in New Issue
Block a user