Revision cf21a4f2
Von Sven Schöling vor etwa 3 Jahren hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
18 | 18 |
use SL::DB::Order; |
19 | 19 |
use SL::DB::Default; |
20 | 20 |
use SL::DB::Unit; |
21 |
use SL::DB::Order; |
|
21 | 22 |
use SL::DB::Part; |
22 | 23 |
use SL::DB::PartClassification; |
23 | 24 |
use SL::DB::PartsGroup; |
... | ... | |
85 | 86 |
# this interfers with init_order |
86 | 87 |
$self->{converted_from_oe_id} = delete $::form->{id}; |
87 | 88 |
|
88 |
# TODO copy data and remember to link them on save |
|
89 |
$self->type_data->validate($::form->{type}); |
|
90 |
|
|
91 |
my $order = SL::DB::Order->new(id => $self->{converted_from_oe_id})->load; |
|
92 |
|
|
93 |
$self->order(SL::DB::DeliveryOrder->new_from($order, type => $::form->{type})); |
|
89 | 94 |
|
90 | 95 |
$self->action_add; |
91 | 96 |
} |
Auch abrufbar als: Unified diff
DeliveryPlan: Bei Umwandlung Typ an new_from geben