]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Form.pm
Menge und Soldtotal in Warensuche getrennt.
[kivitendo-erp.git] / SL / Form.pm
index d0a4157b4a66bb7d4ee10f2fc5833bbcd631688b..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