Optimierung Helfer-Funktion _get_delivery_qty
authorJan Büren <jan@kivitendo-premium.de>
Tue, 11 Nov 2014 10:43:28 +0000 (11:43 +0100)
committerJan 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

index 5e8aad0..ffae434 100644 (file)
@@ -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 {