fix: disable asset repair when status is fully depreciated

(cherry picked from commit 66fe1aa85d)
This commit is contained in:
SowmyaArunachalam
2026-01-14 21:22:10 +05:30
committed by Mergify
parent b3e12f9acb
commit 13e4849c43

View File

@@ -116,14 +116,6 @@ frappe.ui.form.on("Asset", {
__("Manage")
);
frm.add_custom_button(
__("Repair Asset"),
function () {
frm.trigger("create_asset_repair");
},
__("Manage")
);
frm.add_custom_button(
__("Split Asset"),
function () {
@@ -155,6 +147,14 @@ frappe.ui.form.on("Asset", {
},
__("Manage")
);
frm.add_custom_button(
__("Repair Asset"),
function () {
frm.trigger("create_asset_repair");
},
__("Manage")
);
}
if (!frm.doc.calculate_depreciation) {