Revision 5b1b4713
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
js/kivi.Order.js | ||
---|---|---|
970 | 970 |
data.push({ name: 'action', value: 'Order/show_conversion_to_purchase_delivery_order_item_selection' }); |
971 | 971 |
|
972 | 972 |
kivi.popup_dialog({ |
973 |
id: "convert_to_purchase_delivery_order_item_selection", |
|
973 |
id: "convert_to_purchase_delivery_order_item_position_selection",
|
|
974 | 974 |
url: "controller.pl", |
975 | 975 |
data: data, |
976 | 976 |
type: "POST", |
977 | 977 |
dialog: { title: kivi.t8("Select items for delivery order") }, |
978 | 978 |
load: function() { |
979 |
$("body").data("convert_to_purchase_delivery_order_item_selection_params", params); |
|
979 |
$("body").data("convert_to_purchase_delivery_order_item_position_selection_params", params);
|
|
980 | 980 |
} |
981 | 981 |
}); |
982 | 982 |
}; |
983 | 983 |
|
984 | 984 |
ns.convert_to_purchase_delivery_order_item_selection = function() { |
985 |
let params = $("body").data("convert_to_purchase_delivery_order_item_selection_params"); |
|
985 |
let params = $("body").data("convert_to_purchase_delivery_order_item_position_selection_params");
|
|
986 | 986 |
|
987 |
let $dialog = $("#convert_to_purchase_delivery_order_item_selection"); |
|
988 |
let selected_items = $dialog.find("tbody input.item_selection_checkall").serializeArray(); |
|
987 |
let $dialog = $("#convert_to_purchase_delivery_order_item_position_selection");
|
|
988 |
let selected_items = $dialog.find("tbody input.item_position_selection_checkall").serializeArray();
|
|
989 | 989 |
params.data = selected_items; |
990 | 990 |
|
991 |
additional_param = { name: 'only_selected_items', value: 1 }; |
|
991 |
additional_param = { name: 'only_selected_item_positions', value: 1 };
|
|
992 | 992 |
if (params.form_params) { |
993 | 993 |
if (Array.isArray(params.form_params)) { |
994 | 994 |
params.form_params.push(additional_param); |
Auch abrufbar als: Unified diff
Model::Record: FIX: Workflow mit ausgewählten Positionen