Revision f822c107
Von Werner Hahn vor fast 3 Jahren hinzugefügt
- ID f822c107ddbe750fc0a9e587ac74a75c7e7fcd55
- Vorgänger cc6300b3
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
$self->action_add;
|
||
}
|
||
|
||
sub action_add_from_reclamation {
|
||
my ($self) = @_;
|
||
|
||
require SL::DB::Reclamation;
|
||
my $reclamation = SL::DB::Reclamation->new(id => $::form->{from_id})->load;
|
||
my ($delivery_order, $error) = $reclamation->convert_to_delivery_order();
|
||
if($error) {
|
||
croak("Error while converting: " . $error);
|
||
}
|
||
|
||
$self->order($delivery_order);
|
||
|
||
$self->action_add;
|
||
}
|
||
|
||
# edit an existing order
|
||
sub action_edit {
|
||
my ($self) = @_;
|
Auch abrufbar als: Unified diff
Reclamation: Workflow Reclamation→Lieferschein ...
neuen DeliveryOrderController benutzen einlagern geht nicht