fix(ux): filter closed SCO in Get Items From dialog
This commit is contained in:
parent
5bc2035bd0
commit
bb839b2924
@ -10,7 +10,7 @@ frappe.listview_settings['Subcontracting Order'] = {
|
|||||||
"Completed": "green",
|
"Completed": "green",
|
||||||
"Partial Material Transferred": "purple",
|
"Partial Material Transferred": "purple",
|
||||||
"Material Transferred": "blue",
|
"Material Transferred": "blue",
|
||||||
"Closed": "red",
|
"Closed": "green",
|
||||||
"Cancelled": "red",
|
"Cancelled": "red",
|
||||||
};
|
};
|
||||||
return [__(doc.status), status_colors[doc.status], "status,=," + doc.status];
|
return [__(doc.status), status_colors[doc.status], "status,=," + doc.status];
|
||||||
|
|||||||
@ -93,7 +93,8 @@ frappe.ui.form.on('Subcontracting Receipt', {
|
|||||||
get_query_filters: {
|
get_query_filters: {
|
||||||
docstatus: 1,
|
docstatus: 1,
|
||||||
per_received: ['<', 100],
|
per_received: ['<', 100],
|
||||||
company: frm.doc.company
|
company: frm.doc.company,
|
||||||
|
status: ['!=', 'Closed'],
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, __('Get Items From'));
|
}, __('Get Items From'));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user