projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c4375d
)
PTC-Doku um API-Beispielsaufruf ergänzt
author
Jan Büren
<jan@kivitendo-premium.de>
Thu, 18 Dec 2014 13:41:55 +0000
(14:41 +0100)
committer
Jan Büren
<jan@kivitendo-premium.de>
Thu, 18 Dec 2014 13:41:55 +0000
(14:41 +0100)
SL/DB/Helper/PriceTaxCalculator.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Helper/PriceTaxCalculator.pm
b/SL/DB/Helper/PriceTaxCalculator.pm
index
9048736
..
df61136
100644
(file)
--- a/
SL/DB/Helper/PriceTaxCalculator.pm
+++ b/
SL/DB/Helper/PriceTaxCalculator.pm
@@
-360,6
+360,14
@@
C<taxkey_id>.
The items are stored in the same order the items are stored in the
object that L</calculate_taxes_and_prices> 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