Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2bef2250

Von Tamino Steinert vor etwa 1 Jahr hinzugefügt

  • ID 2bef2250363be42738ee12815333709ba37c7fab
  • Vorgänger 3b2c40d9
  • Nachfolger d014938d

Model::Record: Funktionsaufruf angepasst für new_from_worklow ...

und new_from_workflow_multi

Unterschiede anzeigen:

SL/Controller/Order.pm
103 103
  my %params;
104 104
  my $target_type = $reclamation->is_sales ? SALES_ORDER_TYPE()
105 105
                                           : PURCHASE_ORDER_TYPE();
106
  my $order = SL::Model::Record->new_from_workflow($reclamation, 'SL::DB::Order', ref($self->order), $target_type);
106
  my $order = SL::Model::Record->new_from_workflow($reclamation, $target_type);
107 107

  
108 108
  $self->{converted_from_reclamation_id}       = $order->{ RECORD_ID()      };
109 109
  $_   ->{converted_from_reclamation_items_id} = $_    ->{ RECORD_ITEM_ID() } for @{ $order->items_sorted };
......
190 190
  my @multi_orders = map { SL::DB::Order->new(id => $_)->load } @multi_ids;
191 191
  $self->{converted_from_oe_id} = join ' ', map { $_->id } @multi_orders;
192 192
  my $target_type = "sales_order";
193
  my $order = SL::Model::Record->new_from_workflow_multi(\@multi_orders, ref($self->order), $target_type, sort_sources_by => 'transdate');
193
  my $order = SL::Model::Record->new_from_workflow_multi(\@multi_orders, $target_type, sort_sources_by => 'transdate');
194 194
  $self->order($order);
195 195

  
196 196
  $self->action_edit();
......
882 882
  my $no_linked_records =    (any { $destination_type eq $_ } (SALES_QUOTATION_TYPE(), REQUEST_QUOTATION_TYPE()))
883 883
                          && $from_side eq $to_side;
884 884

  
885
  $self->order(SL::Model::Record->new_from_workflow($self->order, 'SL::DB::Order', $destination_type, no_linked_records => $no_linked_records));
885
  $self->order(SL::Model::Record->new_from_workflow($self->order, $destination_type, no_linked_records => $no_linked_records));
886 886

  
887 887
  delete $::form->{id};
888 888

  

Auch abrufbar als: Unified diff