X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b974593a14d4094fafc588ebca1ed88ab98a36b7..7df63f1575c1987f699ee99a19b95da00703e8d0:/SL/IC.pm diff --git a/SL/IC.pm b/SL/IC.pm index bce0debe7..30aa8cf0d 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -985,7 +985,7 @@ sub all_parts { # now the master trick: soldtotal. if ($form->{l_soldtotal}) { - push @where_tokens, 'ioi.qty >= 0'; + push @where_tokens, 'NOT ioi.qty = 0'; push @group_tokens, @select_tokens; map { s/.*\sAS\s+//si } @group_tokens; push @select_tokens, 'SUM(ioi.qty)';