From d2910d3644f9602c0ccfa536fc16442f5c8c9779 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 11 Nov 2014 11:43:28 +0100 Subject: [PATCH] Optimierung Helfer-Funktion _get_delivery_qty ALLE Aufrufe dann auch von dieser Funktion erledigen. --- SL/DB/OrderItem.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.20.1