Revision e4bcffbd
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
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, $target_type); |
|
106 |
my $order = SL::Model::Record->new_from_workflow($reclamation, ref($self->order), $target_type);
|
|
107 | 107 |
$self->{converted_from_reclamation_id} = $::form->{from_id}; |
108 | 108 |
|
109 | 109 |
$self->order($order); |
... | ... | |
188 | 188 |
my @multi_orders = map { SL::DB::Order->new(id => $_)->load } @multi_ids; |
189 | 189 |
$self->{converted_from_oe_id} = join ' ', map { $_->id } @multi_orders; |
190 | 190 |
my $target_type = "sales_order"; |
191 |
my $order = SL::Model::Record->new_from_workflow_multi(\@multi_orders, $target_type, sort_sources_by => 'transdate'); |
|
191 |
my $order = SL::Model::Record->new_from_workflow_multi(\@multi_orders, ref($self->order), $target_type, sort_sources_by => 'transdate');
|
|
192 | 192 |
$self->order($order); |
193 | 193 |
|
194 | 194 |
$self->action_edit(); |
Auch abrufbar als: Unified diff
Model::Record: übergebe Typ für new_from_workflow und ..._multi