fix: show work order progress bar even it is closed (#29312)
This commit is contained in:
parent
66bf21f143
commit
4d48035828
@ -131,16 +131,14 @@ frappe.ui.form.on("Work Order", {
|
||||
erpnext.work_order.set_custom_buttons(frm);
|
||||
frm.set_intro("");
|
||||
|
||||
if (frm.doc.docstatus === 0 && !frm.doc.__islocal) {
|
||||
if (frm.doc.docstatus === 0 && !frm.is_new()) {
|
||||
frm.set_intro(__("Submit this Work Order for further processing."));
|
||||
} else {
|
||||
frm.trigger("show_progress_for_items");
|
||||
frm.trigger("show_progress_for_operations");
|
||||
}
|
||||
|
||||
if (frm.doc.status != "Closed") {
|
||||
if (frm.doc.docstatus===1) {
|
||||
frm.trigger('show_progress_for_items');
|
||||
frm.trigger('show_progress_for_operations');
|
||||
}
|
||||
|
||||
if (frm.doc.docstatus === 1
|
||||
&& frm.doc.operations && frm.doc.operations.length) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user