Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision cded3d3b

Von Moritz Bunkus vor etwa 7 Jahren hinzugefügt

  • ID cded3d3b31801ce01a075d6c56ea3c48552562a6
  • Vorgänger 6f90b1ba
  • Nachfolger a439697f

ActionBar: Verwendung bei Angebots-/Auftragssuche

Unterschiede anzeigen:

bin/mozilla/oe.pl
435 435
  }
436 436
}
437 437

  
438
sub setup_oe_orders_action_bar {
439
  my %params = @_;
440

  
441
  return unless $::form->{type} eq 'sales_order';
442

  
443
  for my $bar ($::request->layout->get('actionbar')) {
444
    $bar->add(
445
      action => [
446
        t8('New sales order'),
447
        submit    => [ '#form', { action => 'edit' } ],
448
        checks    => [ [ 'kivi.check_if_entries_selected', '[name^=multi_id_]' ] ],
449
        accesskey => 'enter',
450
      ],
451
    );
452
  }
453
}
454

  
438 455
sub form_header {
439 456
  $main::lxdebug->enter_sub();
440 457
  my @custom_hiddens;
......
1158 1175

  
1159 1176
  $report->set_options('top_info_text'        => join("\n", @options),
1160 1177
                       'raw_top_info_text'    => $form->parse_html_template('oe/orders_top'),
1161
                       'raw_bottom_info_text' => $form->parse_html_template('oe/orders_bottom', { 'SHOW_CONTINUE_BUTTON' => $allow_multiple_orders }),
1178
                       'raw_bottom_info_text' => $form->parse_html_template('oe/orders_bottom'),
1162 1179
                       'output_format'        => 'HTML',
1163 1180
                       'title'                => $form->{title},
1164 1181
                       'attachment_basename'  => $attachment_basename . strftime('_%Y%m%d', localtime time),
......
1239 1256
  $report->add_separator();
1240 1257
  $report->add_data(create_subtotal_row(\%totals, \@columns, \%column_alignment, \@subtotal_columns, 'listtotal'));
1241 1258

  
1259
  setup_oe_orders_action_bar();
1242 1260
  $report->generate_with_headers(action_bar => 1);
1243 1261

  
1244 1262
  $main::lxdebug->leave_sub();

Auch abrufbar als: Unified diff