Revision 209100ca
Von Jan Büren vor fast 10 Jahren hinzugefügt
SL/DB/Helper/PriceTaxCalculator.pm | ||
---|---|---|
360 | 360 |
The items are stored in the same order the items are stored in the |
361 | 361 |
object that L</calculate_taxes_and_prices> has been called on. |
362 | 362 |
|
363 |
For example: |
|
364 |
|
|
365 |
my $invoice = SL::DB::Invoice->new(id => 12345)->load; |
|
366 |
my %data = $invoice->calculate_prices_and_taxes; |
|
367 |
my $second_item = $invoice->items->[1]; |
|
368 |
|
|
369 |
print "line total of second item: " . $data{items}->[ $second_item->id ]->{linetotal}; |
|
370 |
|
|
363 | 371 |
=back |
364 | 372 |
|
365 | 373 |
=back |
Auch abrufbar als: Unified diff
PTC-Doku um API-Beispielsaufruf ergänzt