Revision 5775d2c6
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, $target_type); |
|
105 |
my $order = SL::Model::Record->new_from_workflow($reclamation, ref($self->order), $target_type);
|
|
106 | 106 |
$self->{converted_from_reclamation_id} = $::form->{from_id}; |
107 | 107 |
|
108 | 108 |
$self->order($order); |
... | ... | |
180 | 180 |
my @multi_orders = map { SL::DB::Order->new(id => $_)->load } @multi_ids; |
181 | 181 |
$self->{converted_from_oe_id} = join ' ', map { $_->id } @multi_orders; |
182 | 182 |
my $target_type = "sales_order"; |
183 |
my $order = SL::Model::Record->new_from_workflow_multi(\@multi_orders, $target_type, sort_sources_by => 'transdate'); |
|
183 |
my $order = SL::Model::Record->new_from_workflow_multi(\@multi_orders, ref($self->order), $target_type, sort_sources_by => 'transdate');
|
|
184 | 184 |
$self->order($order); |
185 | 185 |
|
186 | 186 |
$self->action_edit(); |
Auch abrufbar als: Unified diff
Model::Record: übergebe Typ für new_from_workflow und ..._multi