Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3b31aeed

Von Moritz Bunkus vor fast 2 Jahren hinzugefügt

  • ID 3b31aeed8d551ef3d67015cbec4430f3287d7c28
  • Vorgänger 46282860
  • Nachfolger dc9a8544

Lieferantenauftrag→Einkaufslieferschein: optional nur mit ausgewählten Positionen

Unterschiede anzeigen:

SL/Controller/Order.pm
816 816
sub action_save_and_delivery_order {
817 817
  my ($self) = @_;
818 818

  
819
  my %params;
820

  
821
  if ($::form->{convert_to_purchase_delivery_order_selected_items_only}) {
822
    $params{only_items} = join(',', @{ $::form->{purchase_delivery_order_item_selection_indexes} || [] });
823
  }
824

  
819 825
  $self->save_and_redirect_to(
820 826
    controller => 'oe.pl',
821 827
    action     => 'oe_delivery_order_from_order',
828
    %params,
822 829
  );
823 830
}
824 831

  
......
2430 2437
          only_if   => (any { $self->type eq $_ } (sales_order_type(), purchase_order_type())),
2431 2438
          disabled  => !$may_edit_create ? t8('You do not have the permissions to access this function.') : undef,
2432 2439
        ],
2440
        action => [
2441
          t8('Save and Delivery Order with item selection'),
2442
          call      => [ 'kivi.Order.convert_to_purchase_delivery_order_select_items',
2443
                         { action             => 'save_and_delivery_order',
2444
                           warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts,
2445
                           warn_on_reqdate    => $::instance_conf->get_order_warn_no_deliverydate },
2446
                       ],
2447
          checks    => [ @req_trans_cost_art, @req_cusordnumber ],
2448
          only_if   => (any { $self->type eq $_ } (purchase_order_type())),
2449
          disabled  => !$may_edit_create ? t8('You do not have the permissions to access this function.') : undef,
2450
        ],
2433 2451
        action => [
2434 2452
          t8('Save and Supplier Delivery Order'),
2435 2453
          call      => [ 'kivi.Order.save', { action             => 'save_and_supplier_delivery_order',

Auch abrufbar als: Unified diff