Revision d031045e
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
102 | 102 |
my %params; |
103 | 103 |
my $target_type = $reclamation->is_sales ? SALES_ORDER_TYPE() |
104 | 104 |
: PURCHASE_ORDER_TYPE(); |
105 |
my $order = SL::Model::Record->new_from_workflow($reclamation, ref($self->order), $target_type); |
|
105 |
my $order = SL::Model::Record->new_from_workflow($reclamation, 'SL::DB::Order', ref($self->order), $target_type);
|
|
106 | 106 |
|
107 | 107 |
$self->{converted_from_reclamation_id} = $order->{ RECORD_ID() }; |
108 | 108 |
$_ ->{converted_from_reclamation_items_id} = $_ ->{ RECORD_ITEM_ID() } for @{ $order->items_sorted }; |
... | ... | |
870 | 870 |
my $no_linked_records = (any { $destination_type eq $_ } (SALES_QUOTATION_TYPE(), REQUEST_QUOTATION_TYPE())) |
871 | 871 |
&& $from_side eq $to_side; |
872 | 872 |
|
873 |
$self->order(SL::Model::Record->new_from_workflow($self->order, $destination_type, no_linked_records => $no_linked_records)); |
|
873 |
$self->order(SL::Model::Record->new_from_workflow($self->order, 'SL::DB::Order', $destination_type, no_linked_records => $no_linked_records));
|
|
874 | 874 |
|
875 | 875 |
delete $::form->{id}; |
876 | 876 |
|
Auch abrufbar als: Unified diff
Model::Record: FIX: Methodenaufruf in Workflow