mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-21 10:26:30 +00:00
fix(sales order): error message on creation of work order from sales order
This commit is contained in:
@@ -878,8 +878,8 @@ 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) {
|
if (!data.items.length) {
|
||||||
frappe.throw(__("Please select items"));
|
frappe.throw(__("Please select atleast one item to continue"));
|
||||||
}
|
}
|
||||||
me.frm.call({
|
me.frm.call({
|
||||||
method: "make_work_orders",
|
method: "make_work_orders",
|
||||||
|
|||||||
Reference in New Issue
Block a user