Revision 5775d2c6
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/Controller/Reclamation.pm | ||
---|---|---|
125 | 125 |
} |
126 | 126 |
|
127 | 127 |
my $order = SL::DB::Order->new(id => $::form->{from_id})->load; |
128 |
my $reclamation = SL::Model::Record->new_from_workflow($order, $self->type); |
|
128 |
my $reclamation = SL::Model::Record->new_from_workflow($order, ref($self->reclamaiton), $self->type);
|
|
129 | 129 |
|
130 | 130 |
$self->reclamation($reclamation); |
131 | 131 |
|
... | ... | |
151 | 151 |
} |
152 | 152 |
|
153 | 153 |
my $delivery_order = SL::DB::DeliveryOrder->new(id => $::form->{from_id})->load; |
154 |
my $reclamation = SL::Model::Record->new_from_workflow($delivery_order, $self->type); |
|
154 |
my $reclamation = SL::Model::Record->new_from_workflow($delivery_order, ref($self->reclamaiton), $self->type);
|
|
155 | 155 |
|
156 | 156 |
$self->reclamation($reclamation); |
157 | 157 |
|
... | ... | |
177 | 177 |
} |
178 | 178 |
|
179 | 179 |
my $invoice = SL::DB::Invoice->new(id => $::form->{from_id})->load; |
180 |
my $reclamation = SL::Model::Record->new_from_workflow($invoice, $self->type); |
|
180 |
my $reclamation = SL::Model::Record->new_from_workflow($invoice, ref($self->reclamaiton), $self->type);
|
|
181 | 181 |
|
182 | 182 |
$self->reclamation($reclamation); |
183 | 183 |
|
... | ... | |
205 | 205 |
require SL::DB::PurchaseInvoice; |
206 | 206 |
my $invoice = SL::DB::PurchaseInvoice->new(id => $::form->{from_id})->load; |
207 | 207 |
$invoice->{type} = $invoice->invoice_type; #can't add type → invoice_type in SL/DB/PurchaseInvoice |
208 |
my $reclamation = SL::Model::Record->new_from_workflow($invoice, $self->type); |
|
208 |
my $reclamation = SL::Model::Record->new_from_workflow($invoice, ref($self->reclamaiton), $self->type);
|
|
209 | 209 |
|
210 | 210 |
$self->reclamation($reclamation); |
211 | 211 |
|
Auch abrufbar als: Unified diff
Model::Record: übergebe Typ für new_from_workflow und ..._multi