mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 22:19:18 +00:00
* fix: Collapse Scrap Items in Job Card (#28362)
(cherry picked from commit a424310581)
# Conflicts:
# erpnext/manufacturing/doctype/job_card/job_card.json
* fix: resolve conflict
Co-authored-by: Sagar Sharma <63660334+s-aga-r@users.noreply.github.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -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) {
|
refresh: function(frm) {
|
||||||
frappe.flags.pause_job = 0;
|
frappe.flags.pause_job = 0;
|
||||||
frappe.flags.resume_job = 0;
|
frappe.flags.resume_job = 0;
|
||||||
|
|||||||
@@ -397,6 +397,7 @@
|
|||||||
"options": "Batch"
|
"options": "Batch"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"collapsible": 1,
|
||||||
"fieldname": "scrap_items_section",
|
"fieldname": "scrap_items_section",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"label": "Scrap Items"
|
"label": "Scrap Items"
|
||||||
@@ -419,7 +420,7 @@
|
|||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-11-09 14:07:20.290306",
|
"modified": "2021-11-12 10:15:03.572401",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Manufacturing",
|
"module": "Manufacturing",
|
||||||
"name": "Job Card",
|
"name": "Job Card",
|
||||||
|
|||||||
Reference in New Issue
Block a user