Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 91abaf6c

Von Bernd Bleßmann vor etwa 8 Jahren hinzugefügt

  • ID 91abaf6cbfa5bb429df7fce3748b3d37082551ad
  • Vorgänger 6550f507
  • Nachfolger 2d50590b

Auftrags-Controller: Mehrfach-Artikelauswahl mit Mengeneingabe.

Unterschiede anzeigen:

templates/webpages/order/tabs/basic_data.html
143 143

  
144 144
  [%- PROCESS order/tabs/_item_input.html %]
145 145

  
146
  [% L.button_tag('show_multi_items_dialog()', LxERP.t8('Add multiple parts')) %]</td>
147

  
146 148
  <table width="100%">
147 149
    <tr>
148 150
      <td>
......
280 282
  $.post("controller.pl", data, kivi.eval_json_result);
281 283
}
282 284

  
285
function show_multi_items_dialog() {
286
  if (!check_cv()) return;
287

  
288
  kivi.popup_dialog({
289
    url: 'controller.pl?action=Order/show_multi_items_dialog',
290
    data: { type: $('#type').val(),
291
            callback: 'Order/add_multi_items',
292
            callback_data_id: 'order_form' },
293
    id: 'jq_multi_items_dialog',
294
    dialog: {
295
      title: kivi.t8('Add multiple items'),
296
      width:  800,
297
      height: 500
298
    }
299
  });
300
  return true;
301
}
302

  
303
function close_multi_items_dialog() {
304
  $('#jq_multi_items_dialog').dialog('close');
305
};
306

  
283 307
function delete_order_item_row(clicked) {
284 308
  var row = $(clicked).parents("tbody").first();
285 309
  $(row).remove();

Auch abrufbar als: Unified diff