mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
fix: work order created message pops up if no items are selected (#41677)
This commit is contained in:
@@ -893,6 +893,9 @@ erpnext.selling.SalesOrderController = class SalesOrderController extends erpnex
|
|||||||
fields: fields,
|
fields: fields,
|
||||||
primary_action: function () {
|
primary_action: function () {
|
||||||
var data = { items: d.fields_dict.items.grid.get_selected_children() };
|
var data = { items: d.fields_dict.items.grid.get_selected_children() };
|
||||||
|
if (!data) {
|
||||||
|
frappe.throw(__("Please select items"));
|
||||||
|
}
|
||||||
me.frm.call({
|
me.frm.call({
|
||||||
method: "make_work_orders",
|
method: "make_work_orders",
|
||||||
args: {
|
args: {
|
||||||
|
|||||||
Reference in New Issue
Block a user