Revision 58348a96
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
102 | 102 |
my %params; |
103 | 103 |
my $target_type = $reclamation->is_sales ? SALES_ORDER_TYPE() |
104 | 104 |
: PURCHASE_ORDER_TYPE(); |
105 |
my $order = SL::Model::Record->new_from_workflow($reclamation, 'SL::DB::Order', ref($self->order), $target_type);
|
|
105 |
my $order = SL::Model::Record->new_from_workflow($reclamation, $target_type); |
|
106 | 106 |
|
107 | 107 |
$self->{converted_from_reclamation_id} = $order->{ RECORD_ID() }; |
108 | 108 |
$_ ->{converted_from_reclamation_items_id} = $_ ->{ RECORD_ITEM_ID() } for @{ $order->items_sorted }; |
... | ... | |
182 | 182 |
my @multi_orders = map { SL::DB::Order->new(id => $_)->load } @multi_ids; |
183 | 183 |
$self->{converted_from_oe_id} = join ' ', map { $_->id } @multi_orders; |
184 | 184 |
my $target_type = "sales_order"; |
185 |
my $order = SL::Model::Record->new_from_workflow_multi(\@multi_orders, ref($self->order), $target_type, sort_sources_by => 'transdate');
|
|
185 |
my $order = SL::Model::Record->new_from_workflow_multi(\@multi_orders, $target_type, sort_sources_by => 'transdate'); |
|
186 | 186 |
$self->order($order); |
187 | 187 |
|
188 | 188 |
$self->action_edit(); |
... | ... | |
863 | 863 |
my $no_linked_records = (any { $destination_type eq $_ } (SALES_QUOTATION_TYPE(), REQUEST_QUOTATION_TYPE())) |
864 | 864 |
&& $from_side eq $to_side; |
865 | 865 |
|
866 |
$self->order(SL::Model::Record->new_from_workflow($self->order, 'SL::DB::Order', $destination_type, no_linked_records => $no_linked_records));
|
|
866 |
$self->order(SL::Model::Record->new_from_workflow($self->order, $destination_type, no_linked_records => $no_linked_records)); |
|
867 | 867 |
|
868 | 868 |
delete $::form->{id}; |
869 | 869 |
|
Auch abrufbar als: Unified diff
Model::Record: Funktionsaufruf angepasst für new_from_worklow ...
und new_from_workflow_multi