Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 913b84ac

Von Tamino Steinert vor etwa 1 Jahr hinzugefügt

  • ID 913b84ac9a957b58239738b5d0f9b48b8a1ed37e
  • Vorgänger 37be6c33
  • Nachfolger 11ca9f4a

Model::Record: FIX: Methodenaufruf in Workflow

Unterschiede anzeigen:

SL/Controller/Order.pm
103 103
  my %params;
104 104
  my $target_type = $reclamation->is_sales ? SALES_ORDER_TYPE()
105 105
                                           : PURCHASE_ORDER_TYPE();
106
  my $order = SL::Model::Record->new_from_workflow($reclamation, ref($self->order), $target_type);
106
  my $order = SL::Model::Record->new_from_workflow($reclamation, 'SL::DB::Order', ref($self->order), $target_type);
107 107

  
108 108
  $self->{converted_from_reclamation_id}       = $order->{ RECORD_ID()      };
109 109
  $_   ->{converted_from_reclamation_items_id} = $_    ->{ RECORD_ITEM_ID() } for @{ $order->items_sorted };
......
882 882
  my $no_linked_records =    (any { $destination_type eq $_ } (SALES_QUOTATION_TYPE(), REQUEST_QUOTATION_TYPE()))
883 883
                          && $from_side eq $to_side;
884 884

  
885
  $self->order(SL::Model::Record->new_from_workflow($self->order, $destination_type, no_linked_records => $no_linked_records));
885
  $self->order(SL::Model::Record->new_from_workflow($self->order, 'SL::DB::Order', $destination_type, no_linked_records => $no_linked_records));
886 886

  
887 887
  delete $::form->{id};
888 888

  

Auch abrufbar als: Unified diff