mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-04 19:14:41 +00:00
fix: disable asset repair when status is fully depreciated
(cherry picked from commit 66fe1aa85d)
This commit is contained in:
committed by
Mergify
parent
b3e12f9acb
commit
13e4849c43
@@ -116,14 +116,6 @@ frappe.ui.form.on("Asset", {
|
|||||||
__("Manage")
|
__("Manage")
|
||||||
);
|
);
|
||||||
|
|
||||||
frm.add_custom_button(
|
|
||||||
__("Repair Asset"),
|
|
||||||
function () {
|
|
||||||
frm.trigger("create_asset_repair");
|
|
||||||
},
|
|
||||||
__("Manage")
|
|
||||||
);
|
|
||||||
|
|
||||||
frm.add_custom_button(
|
frm.add_custom_button(
|
||||||
__("Split Asset"),
|
__("Split Asset"),
|
||||||
function () {
|
function () {
|
||||||
@@ -155,6 +147,14 @@ frappe.ui.form.on("Asset", {
|
|||||||
},
|
},
|
||||||
__("Manage")
|
__("Manage")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
frm.add_custom_button(
|
||||||
|
__("Repair Asset"),
|
||||||
|
function () {
|
||||||
|
frm.trigger("create_asset_repair");
|
||||||
|
},
|
||||||
|
__("Manage")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!frm.doc.calculate_depreciation) {
|
if (!frm.doc.calculate_depreciation) {
|
||||||
|
|||||||
Reference in New Issue
Block a user