Revision 2dd01fd2
Von Werner Hahn vor etwa 2 Jahren hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
105 | 105 |
|
106 | 106 |
require SL::DB::Reclamation; |
107 | 107 |
my $reclamation = SL::DB::Reclamation->new(id => $::form->{from_id})->load; |
108 |
my $type = $reclamation->type eq 'sales_reclamation' ? 'rma_delivery_order' : 'supplier_delivery_order'; |
|
109 |
my ($delivery_order, $error) = $reclamation->convert_to_delivery_order(type => $type); |
|
108 |
my ($delivery_order, $error) = $reclamation->convert_to_delivery_order(); |
|
110 | 109 |
if($error) { |
111 | 110 |
croak("Error while converting: " . $error); |
112 | 111 |
} |
Auch abrufbar als: Unified diff
DeliveryOrderType richtig setzen