X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/eca0862f8bcc69d22d94c41cc9076a008c77056d..fef43fa5867d3389a5e967dd758545b7a3904f00:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index d0a4157b4..0c291dabe 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -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