I have created this script , but it doesn’t seems to work , help please
frappe.ui.form.on(‘Stock Entry Detail’, {
refresh(frm) {
frm.set_query(“item_code”, “items”, function(doc, cdt, cdn) {
return {
query: null,
filters: null
};
});
}
})
I have created this script , but it doesn’t seems to work , help please
frappe.ui.form.on(‘Stock Entry Detail’, {
refresh(frm) {
frm.set_query(“item_code”, “items”, function(doc, cdt, cdn) {
return {
query: null,
filters: null
};
});
}
})
You cannot add a service or non-stock item to a stock entry. These items are not meant to be tracked in warehouses, so It will show an error if you try. Stock entries are only for items marked as “Stock Item.” For non-stock items, you can use other documents like Delivery Notes or Purchase Receipts to manage them.
is there a way for me to choose it still? it won’t be processed but ijust need to be able to choose it
If you override the JS, then it’s not working because validation is set on the server side.