From: Jan Büren Date: Thu, 18 Dec 2014 13:41:55 +0000 (+0100) Subject: PTC-Doku um API-Beispielsaufruf ergänzt X-Git-Tag: release-3.2.0beta~181 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=209100ca065acebaff1294b0c1d2853529773413;p=kivitendo-erp.git PTC-Doku um API-Beispielsaufruf ergänzt --- 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