Revision 10699892
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/Controller/Reclamation.pm | ||
---|---|---|
sub action_customer_vendor_changed {
|
||
my ($self) = @_;
|
||
|
||
$self->reclamation(
|
||
SL::Model::Record->update_after_customer_vendor_change($self->reclamation));
|
||
|
||
$self->recalc();
|
||
|
||
if ( $self->reclamation->customervendor->contacts
|
||
... | ... | |
);
|
||
}
|
||
|
||
my $cv_id_method = $self->cv . '_id';
|
||
if (!$::form->{id} && $::form->{$cv_id_method}) {
|
||
$reclamation->$cv_id_method($::form->{$cv_id_method});
|
||
$reclamation = SL::Model::Record->update_after_customer_vendor_change($reclamation);
|
||
}
|
||
|
||
my $form_reclamation_items = delete $::form->{reclamation}->{reclamation_items};
|
||
|
||
$reclamation->assign_attributes(%{$::form->{reclamation}});
|
Auch abrufbar als: Unified diff
Model::Record: Anpassen nach Kunden/Lieferanten-Änderung