fix: Collapse Scrap Items in Job Card (#28362)
This commit is contained in:
parent
829f92f10a
commit
a424310581
@ -23,6 +23,12 @@ frappe.ui.form.on('Job Card', {
|
||||
);
|
||||
},
|
||||
|
||||
onload: function(frm) {
|
||||
if (frm.doc.scrap_items.length == 0) {
|
||||
frm.fields_dict['scrap_items_section'].collapse();
|
||||
}
|
||||
},
|
||||
|
||||
refresh: function(frm) {
|
||||
frappe.flags.pause_job = 0;
|
||||
frappe.flags.resume_job = 0;
|
||||
|
@ -396,6 +396,7 @@
|
||||
"options": "Batch"
|
||||
},
|
||||
{
|
||||
"collapsible": 1,
|
||||
"fieldname": "scrap_items_section",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "Scrap Items"
|
||||
@ -411,7 +412,7 @@
|
||||
],
|
||||
"is_submittable": 1,
|
||||
"links": [],
|
||||
"modified": "2021-09-14 00:38:46.873105",
|
||||
"modified": "2021-11-12 10:15:03.572401",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Manufacturing",
|
||||
"name": "Job Card",
|
||||
|
Loading…
x
Reference in New Issue
Block a user