Revision 17abd93e
Von Werner Hahn vor fast 2 Jahren hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
100 | 100 |
$self->action_add; |
101 | 101 |
} |
102 | 102 |
|
103 |
sub action_add_from_reclamation { |
|
104 |
my ($self) = @_; |
|
105 |
|
|
106 |
require SL::DB::Reclamation; |
|
107 |
my $reclamation = SL::DB::Reclamation->new(id => $::form->{from_id})->load; |
|
108 |
my ($delivery_order, $error) = $reclamation->convert_to_delivery_order(); |
|
109 |
if($error) { |
|
110 |
croak("Error while converting: " . $error); |
|
111 |
} |
|
112 |
|
|
113 |
$self->order($delivery_order); |
|
114 |
|
|
115 |
$self->action_add; |
|
116 |
} |
|
117 |
|
|
103 | 118 |
# edit an existing order |
104 | 119 |
sub action_edit { |
105 | 120 |
my ($self) = @_; |
Auch abrufbar als: Unified diff
Reclamation: Workflow Reclamation→Lieferschein ...
neuen DeliveryOrderController benutzen einlagern geht nicht