mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 07:22:13 +00:00
fix: not able to create the batch (backport #42784) (#42785) fix: not able to create the batch (#42784) (cherry picked from commit32c4fab14f) Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com> (cherry picked from commit0f9849e672) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
frappe.ui.form.on("Batch", {
|
frappe.ui.form.on("Batch", {
|
||||||
setup: (frm) => {
|
setup: (frm) => {
|
||||||
frm.fields_dict["item"].get_query = function (doc, cdt, cdn) {
|
frm.set_query("item", () => {
|
||||||
return {
|
return {
|
||||||
query: "erpnext.controllers.queries.item_query",
|
query: "erpnext.controllers.queries.item_query",
|
||||||
filters: {
|
filters: {
|
||||||
@@ -11,7 +11,7 @@ frappe.ui.form.on("Batch", {
|
|||||||
has_batch_no: 1,
|
has_batch_no: 1,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
};
|
});
|
||||||
},
|
},
|
||||||
refresh: (frm) => {
|
refresh: (frm) => {
|
||||||
if (!frm.is_new()) {
|
if (!frm.is_new()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user