Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 225c2831

Von Werner Hahn vor fast 2 Jahren hinzugefügt

  • ID 225c28314ede7f748acc6a8eb2807cd173291f9e
  • Vorgänger b8f97390
  • Nachfolger 7282e848

DeliveryOrderType richtig setzen

Unterschiede anzeigen:

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