Revision 790ba772
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
181 | 181 |
# make new order from given orders |
182 | 182 |
my @multi_orders = map { SL::DB::DeliveryOrder->new(id => $_)->load } @multi_ids; |
183 | 183 |
$self->{converted_from_oe_id} = join ' ', map { $_->id } @multi_orders; |
184 |
$self->order(SL::DB::DeliveryOrder->new_from_multi(\@multi_orders, sort_sources_by => 'transdate')); |
|
184 |
my $target_type = "sales_delivery_order"; |
|
185 |
my $delivery_order = SL::Model::Record->new_from_workflow_multi(\@multi_orders, $target_type, sort_sources_by => 'transdate'); |
|
186 |
$self->order($delivery_order); |
|
185 | 187 |
|
186 | 188 |
$self->action_edit(); |
187 | 189 |
} |
Auch abrufbar als: Unified diff
Model::Record: new_from_workflow_multi implementiert