fix(Asset Repair): Only modify depreciation schedule if calculate_depreciation is checked
diff --git a/erpnext/assets/doctype/asset_repair/asset_repair.py b/erpnext/assets/doctype/asset_repair/asset_repair.py
index 3e81ba5..e3093df 100644
--- a/erpnext/assets/doctype/asset_repair/asset_repair.py
+++ b/erpnext/assets/doctype/asset_repair/asset_repair.py
@@ -47,7 +47,8 @@
if self.capitalize_repair_cost:
self.check_for_purchase_invoice()
self.make_gl_entries()
- self.modify_depreciation_schedule()
+ if frappe.db.get_value('Asset', self.asset, 'calculate_depreciation'):
+ self.modify_depreciation_schedule()
def check_repair_status(self):
if self.repair_status == "Pending":