PriceTaxCalculator: Doku-Fix
[kivitendo-erp.git] / SL / DB / Helper / PriceTaxCalculator.pm
index 9048736..07ad5b1 100644 (file)
@@ -358,7 +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;
+
+  print "line total of second item: " . $data{items}->[1]->{linetotal};
 
 =back