PriceTaxCalculator: Doku-Fix
[kivitendo-erp.git] / SL / DB / Helper / PriceTaxCalculator.pm
index df61136..07ad5b1 100644 (file)
@@ -358,15 +358,14 @@ C<linetotal>, C<linetotal_cost>, C<sellprice>, C<tax_amount> and
 C<taxkey_id>.
 
 The items are stored in the same order the items are stored in the
-object that L</calculate_taxes_and_prices> has been called on.
+object that L</calculate_prices_and_taxes> has been called on.
 
 For example:
 
   my $invoice     = SL::DB::Invoice->new(id => 12345)->load;
   my %data        = $invoice->calculate_prices_and_taxes;
-  my $second_item = $invoice->items->[1];
 
-  print "line total of second item: " . $data{items}->[ $second_item->id ]->{linetotal};
+  print "line total of second item: " . $data{items}->[1]->{linetotal};
 
 =back