]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Helper/ShippedQty.pm
ShippedQty: Auch bei short circuit chainen
[mfinanz.git] / SL / Helper / ShippedQty.pm
index e9c8e4e8bae969040e592ff8cc4c95b8afa41230..9775570b4beaba922f58705e7f4c3056550c4077 100644 (file)
@@ -104,11 +104,11 @@ sub calculate {
 
   die 'Need exactly one argument, either id, object or arrayref of ids or objects.' unless 2 == @_;
 
-  return if !$data || ('ARRAY' eq ref $data && !@$data);
+  return $self if !$data || ('ARRAY' eq ref $data && !@$data);
 
   $self->normalize_input($data);
 
-  return unless @{ $self->oe_ids };
+  return $self unless @{ $self->oe_ids };
 
   $self->calculate_item_links;
   $self->calculate_fill_up if $self->fill_up;