mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
chore: resolved conflicts
This commit is contained in:
@@ -101,9 +101,6 @@ class AssetDepreciationSchedule(Document):
|
|||||||
self.validate_asset()
|
self.validate_asset()
|
||||||
self.db_set("status", "Active")
|
self.db_set("status", "Active")
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
def before_cancel(self):
|
|
||||||
=======
|
|
||||||
def validate_asset(self):
|
def validate_asset(self):
|
||||||
asset = frappe.get_doc("Asset", self.asset)
|
asset = frappe.get_doc("Asset", self.asset)
|
||||||
if not asset.calculate_depreciation:
|
if not asset.calculate_depreciation:
|
||||||
@@ -121,7 +118,6 @@ class AssetDepreciationSchedule(Document):
|
|||||||
|
|
||||||
def on_cancel(self):
|
def on_cancel(self):
|
||||||
self.db_set("status", "Cancelled")
|
self.db_set("status", "Cancelled")
|
||||||
>>>>>>> a4628c2024 (fix: submit depreciation schedule only for submitted asset)
|
|
||||||
if not self.flags.should_not_cancel_depreciation_entries:
|
if not self.flags.should_not_cancel_depreciation_entries:
|
||||||
self.cancel_depreciation_entries()
|
self.cancel_depreciation_entries()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user