Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a85402c2

Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt

  • ID a85402c2aefba8f363a8de37801fcd5c09187855
  • Vorgänger 966976a7
  • Nachfolger a39cd434

Auftrags-Controller: Typ-Auswahl um neuen Artikel aus Maske heraus anzulegen

Unterschiede anzeigen:

SL/Controller/Order.pm
980 980
sub action_create_part {
981 981
  my ($self) = @_;
982 982

  
983
  $::lxdebug->dump(0, "bb: form", $::form);
983 984
  my $previousform = $::auth->save_form_in_session(non_scalars => 1);
984 985

  
985 986
  my $callback     = $self->url_for(
......
993 994
  my @redirect_params = (
994 995
    controller => 'Part',
995 996
    action     => 'add',
996
    part_type  => 'assembly',
997
    part_type  => $::form->{add_item}->{create_part_type},
997 998
    callback   => $callback,
998 999
    show_abort => 1,
999 1000
  );
templates/webpages/order/tabs/_item_input.html
16 16
    </thead>
17 17
    <tbody>
18 18
      <tr valign="top" class="listrow">
19
        <td class="tooltipster-html" title="[%- 'Create a new part' | $T8 -%]">[% L.button_tag('kivi.Order.create_part()', LxERP.t8('+')) %]</td>
19
        <td class="tooltipster-html" title="[%- 'Create a new part' | $T8 -%]">
20
          [% SET type_options = [[ 'part', LxERP.t8('Part') ], [ 'assembly', LxERP.t8('Assembly') ], [ 'service', LxERP.t8('Service') ] ] %]
21
          [%- IF INSTANCE_CONF.get_feature_experimental_assortment %]
22
            [%- type_options.push([ 'assortment', LxERP.t8('Assortment')]) %]
23
          [%- END %]
24
          [% L.select_tag('add_item.create_part_type', type_options) %]
25
          [% L.button_tag('kivi.Order.create_part()', LxERP.t8('+')) %]
26
        </td>
20 27
        <td>[% L.input_tag('add_item.position', '', size = 5, class="add_item_input numeric") %]</td>
21 28
        <td>
22 29
          [%- SET PARAM_KEY = SELF.cv == "customer" ? 'with_customer_partnumber' : 'with_makemodel' -%]

Auch abrufbar als: Unified diff