X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/1d34002dbf0a3ee90237f4373229a45ed890cd7f..209100ca065acebaff1294b0c1d2853529773413:/SL/DB/Helper/PriceTaxCalculator.pm diff --git a/SL/DB/Helper/PriceTaxCalculator.pm b/SL/DB/Helper/PriceTaxCalculator.pm index 9048736da..df6113663 100644 --- a/SL/DB/Helper/PriceTaxCalculator.pm +++ b/SL/DB/Helper/PriceTaxCalculator.pm @@ -360,6 +360,14 @@ C. The items are stored in the same order the items are stored in the object that L 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}; + =back =back