mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
chore: remove duplicate code
This commit is contained in:
@@ -133,9 +133,6 @@ class AssetDepreciationSchedule(Document):
|
|||||||
)
|
)
|
||||||
frappe.get_doc("Journal Entry", d.journal_entry).cancel()
|
frappe.get_doc("Journal Entry", d.journal_entry).cancel()
|
||||||
|
|
||||||
def on_cancel(self):
|
|
||||||
self.db_set("status", "Cancelled")
|
|
||||||
|
|
||||||
def update_shift_depr_schedule(self):
|
def update_shift_depr_schedule(self):
|
||||||
if not self.shift_based or self.docstatus != 0:
|
if not self.shift_based or self.docstatus != 0:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user