mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 15:32:14 +00:00
fix: work order created message pops up if no items are selected (#41677)
(cherry picked from commit 388ba7f945)
Co-authored-by: Nijith anil <83776819+nijithanil@users.noreply.github.com>
This commit is contained in:
@@ -867,6 +867,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