fix: sider issue
diff --git a/erpnext/manufacturing/doctype/work_order/work_order.js b/erpnext/manufacturing/doctype/work_order/work_order.js
index 9ab8161..bfce1b8 100644
--- a/erpnext/manufacturing/doctype/work_order/work_order.js
+++ b/erpnext/manufacturing/doctype/work_order/work_order.js
@@ -145,12 +145,12 @@
&& frm.doc.operations && frm.doc.operations.length) {
const not_completed = frm.doc.operations.filter(d => {
- if(d.status != 'Completed') {
+ if (d.status != 'Completed') {
return true;
}
});
- if(not_completed && not_completed.length) {
+ if (not_completed && not_completed.length) {
frm.add_custom_button(__('Create Job Card'), () => {
frm.trigger("make_job_card");
}).addClass('btn-primary');
diff --git a/erpnext/manufacturing/doctype/work_order/work_order.py b/erpnext/manufacturing/doctype/work_order/work_order.py
index 6901d71..af80c4e 100644
--- a/erpnext/manufacturing/doctype/work_order/work_order.py
+++ b/erpnext/manufacturing/doctype/work_order/work_order.py
@@ -1015,8 +1015,7 @@
filters={
"work_order": work_order.name,
"status": "Work In Progress"
- },
- pluck='name')
+ }, pluck='name')
if job_cards:
job_cards = ", ".join(job_cards)