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:
69e31dd
)
Optimierung Helfer-Funktion _get_delivery_qty
author
Jan Büren
<jan@kivitendo-premium.de>
Tue, 11 Nov 2014 10:43:28 +0000
(11:43 +0100)
committer
Jan Büren
<jan@kivitendo-premium.de>
Tue, 11 Nov 2014 10:43:28 +0000
(11:43 +0100)
ALLE Aufrufe dann auch von dieser Funktion erledigen.
SL/DB/OrderItem.pm
patch
|
blob
|
history
diff --git
a/SL/DB/OrderItem.pm
b/SL/DB/OrderItem.pm
index
5e8aad0
..
ffae434
100644
(file)
--- a/
SL/DB/OrderItem.pm
+++ b/
SL/DB/OrderItem.pm
@@
-63,7
+63,7
@@
sub value_of_goods {
my $price_factor = $self->price_factor || 1;
$self->_delivered_qty;
- return ($self->
{delivered_qty}
* $self->sellprice * (1 - $self->discount ) / $price_factor);
+ return ($self->
_delivered_qty
* $self->sellprice * (1 - $self->discount ) / $price_factor);
}
sub taxincluded {