Skip to content

Commit

Permalink
chore: remove manual collapsing of section (#28435) (#28450)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8102e4a)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush authored Nov 18, 2021
1 parent a60c648 commit 840256e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions erpnext/manufacturing/doctype/job_card/job_card.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ 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;
Expand Down

0 comments on commit 840256e

Please sign in to comment.