Revision bdc4b5cf
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 }; |
... | ... | |
863 | 863 |
my $no_linked_records = (any { $destination_type eq $_ } (SALES_QUOTATION_TYPE(), REQUEST_QUOTATION_TYPE())) |
864 | 864 |
&& $from_side eq $to_side; |
865 | 865 |
|
866 |
$self->order(SL::Model::Record->new_from_workflow($self->order, $destination_type, no_linked_records => $no_linked_records)); |
|
866 |
$self->order(SL::Model::Record->new_from_workflow($self->order, 'SL::DB::Order', $destination_type, no_linked_records => $no_linked_records));
|
|
867 | 867 |
|
868 | 868 |
delete $::form->{id}; |
869 | 869 |
|
Auch abrufbar als: Unified diff
Model::Record: FIX: Methodenaufruf in Workflow