]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Form.pm
Menge und Soldtotal in Warensuche getrennt.
[kivitendo-erp.git] / SL / Form.pm
index f100b8c905053ef81610a8463d0a906bc4a7b096..0c291dabe09e4d39af37235677306d3d7b005ed4 100644 (file)
@@ -2521,7 +2521,7 @@ sub all_vc {
 
   $table = $table eq "customer" ? "customer" : "vendor";
 
-  my $query = qq|SELECT count(*) FROM $table|;
+  my $query = qq|SELECT count(*) FROM $table WHERE NOT obsolete|;
   my ($count) = selectrow_query($self, $dbh, $query);
 
   # build selection list
@@ -2857,7 +2857,7 @@ sub create_links {
     if ($self->{"$self->{vc}_id"}) {
 
       # only setup currency
-      ($self->{currency}) = split(/:/, $self->{currencies});
+      ($self->{currency}) = split(/:/, $self->{currencies}) if !$self->{currency};
 
     } else {