Skip to content

Commit

Permalink
chore: resolved conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
khushi8112 committed Jul 16, 2024
1 parent 2ffe7d5 commit cfab956
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions erpnext/assets/doctype/asset/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,7 @@ def on_submit(self):
def on_cancel(self):
self.validate_cancellation()
self.cancel_movement_entries()
<<<<<<< HEAD
self.cancel_capitalization()
=======
self.reload()
>>>>>>> 81e0b96c30 (fix: service item capitalization (#42188))
self.delete_depreciation_entries()
cancel_asset_depr_schedules(self)
self.set_status()
Expand Down Expand Up @@ -527,19 +523,6 @@ def cancel_movement_entries(self):
movement = frappe.get_doc("Asset Movement", movement.get("name"))
movement.cancel()

<<<<<<< HEAD
def cancel_capitalization(self):
asset_capitalization = frappe.db.get_value(
"Asset Capitalization",
{"target_asset": self.name, "docstatus": 1, "entry_type": "Capitalization"},
)

if asset_capitalization:
asset_capitalization = frappe.get_doc("Asset Capitalization", asset_capitalization)
asset_capitalization.cancel()

=======
>>>>>>> 81e0b96c30 (fix: service item capitalization (#42188))
def delete_depreciation_entries(self):
if self.calculate_depreciation:
for row in self.get("finance_books"):
Expand Down

0 comments on commit cfab956

Please sign in to comment.