From c21d2acca00997c4ca0be66f053dfdd0180f68f8 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 18 Dec 2014 16:11:42 +0100 Subject: [PATCH] PriceTaxCalculator: Doku-Fix --- SL/DB/Helper/PriceTaxCalculator.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.20.1