mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-20 09:56:31 +00:00
fix: not able to create the batch (#42784)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
frappe.ui.form.on("Batch", {
|
||||
setup: (frm) => {
|
||||
frm.fields_dict["item"].get_query = function (doc, cdt, cdn) {
|
||||
frm.set_query("item", () => {
|
||||
return {
|
||||
query: "erpnext.controllers.queries.item_query",
|
||||
filters: {
|
||||
@@ -11,7 +11,7 @@ frappe.ui.form.on("Batch", {
|
||||
has_batch_no: 1,
|
||||
},
|
||||
};
|
||||
};
|
||||
});
|
||||
},
|
||||
refresh: (frm) => {
|
||||
if (!frm.is_new()) {
|
||||
|
||||
Reference in New Issue
Block a user