mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-16 07:58:38 +00:00
fix(stock): drop call to confirm_if_drafts_exist missing on v16 (#57833)
This commit is contained in:
@@ -533,7 +533,7 @@ frappe.ui.form.on("Material Request", {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
primary_action_label: __("Create"),
|
primary_action_label: __("Create"),
|
||||||
primary_action: async function (values) {
|
primary_action: function (values) {
|
||||||
const item_suppliers = (values.items || []).filter((row) => row.__checked);
|
const item_suppliers = (values.items || []).filter((row) => row.__checked);
|
||||||
if (!item_suppliers.length) {
|
if (!item_suppliers.length) {
|
||||||
frappe.throw(__("Select at least one Item"));
|
frappe.throw(__("Select at least one Item"));
|
||||||
@@ -567,10 +567,6 @@ frappe.ui.form.on("Material Request", {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(await erpnext.utils.confirm_if_drafts_exist(frm.doc, "Purchase Order"))) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
frappe.call({
|
frappe.call({
|
||||||
method: "erpnext.stock.doctype.material_request.material_request.make_purchase_orders_by_supplier",
|
method: "erpnext.stock.doctype.material_request.material_request.make_purchase_orders_by_supplier",
|
||||||
args: { source_name: frm.doc.name, item_suppliers: item_suppliers },
|
args: { source_name: frm.doc.name, item_suppliers: item_suppliers },
|
||||||
|
|||||||
Reference in New Issue
Block a user