Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 245056d0

Von Tamino Steinert vor etwa 1 Jahr hinzugefügt

  • ID 245056d021280e3887724c1a5e96a2d6915b28ca
  • Vorgänger d982e9f4
  • Nachfolger e141beb6

Model::Record: FIX: Workflow mit ausgewählten Positionen

Unterschiede anzeigen:

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