From: Moritz Bunkus Date: Thu, 18 Dec 2014 15:11:42 +0000 (+0100) Subject: PriceTaxCalculator: Doku-Fix X-Git-Tag: release-3.2.0beta~175 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c21d2acca00997c4ca0be66f053dfdd0180f68f8;p=kivitendo-erp.git PriceTaxCalculator: Doku-Fix --- diff --git a/SL/DB/Helper/PriceTaxCalculator.pm b/SL/DB/Helper/PriceTaxCalculator.pm index df6113663..07ad5b11d 100644 --- a/SL/DB/Helper/PriceTaxCalculator.pm +++ b/SL/DB/Helper/PriceTaxCalculator.pm @@ -358,15 +358,14 @@ C, C, C, C and C. The items are stored in the same order the items are stored in the -object that L has been called on. +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}; + print "line total of second item: " . $data{items}->[1]->{linetotal}; =back