Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 50202011

Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt

  • ID 502020116c8071534d46fe83c1b55214ec067ca1
  • Vorgänger f0d79175
  • Nachfolger aa6c0a3d

Model::Record: FIX: Aufruf von new_from_workflow angepasst

Unterschiede anzeigen:

t/model/records.t
136 136
note('combining several sales orders to one combined order');
137 137
my @sales_orders;
138 138
push(@sales_orders, SL::Model::Record->new_from_workflow($sales_quotation1, 'sales_order')->save->load) for 1 .. 3;
139
my $combined_order = SL::Model::Record->new_from_workflow_multi(\@sales_orders, sort_sources_by => 'transdate');
139
my $combined_order = SL::Model::Record->new_from_workflow_multi(\@sales_orders, 'sales_order', sort_sources_by => 'transdate');
140 140
SL::Model::Record->save($combined_order);
141 141
cmp_ok($combined_order->netamount, '==', 3*710, "netamount of combined order ok");
142 142

  
t/workflow/reclamation_reclamation.t
152 152
)->load;
153 153

  
154 154
# new
155
my $new_sales_reclamation = SL::Model::Record->new_from_workflow($sales_reclamation, 'SL::DB::Reclamation', 'sales_reclamation')->save->load;
155
my $new_sales_reclamation = SL::Model::Record->new_from_workflow($sales_reclamation, 'sales_reclamation')->save->load;
156 156
my $new_purchase_reclamation = SL::Model::Record->new_from_workflow($purchase_reclamation, 'purchase_reclamation')->save->load;
157 157

  
158 158
# convert

Auch abrufbar als: Unified diff