From: Jan Büren Date: Tue, 11 Nov 2014 10:43:28 +0000 (+0100) Subject: Optimierung Helfer-Funktion _get_delivery_qty X-Git-Tag: release-3.2.0beta~258 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d2910d3644f9602c0ccfa536fc16442f5c8c9779;p=kivitendo-erp.git Optimierung Helfer-Funktion _get_delivery_qty ALLE Aufrufe dann auch von dieser Funktion erledigen. --- diff --git a/SL/DB/OrderItem.pm b/SL/DB/OrderItem.pm index 5e8aad0cc..ffae434d1 100644 --- 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 {