X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/f11dcc70cd323fe2071ea62b53fc0ec106c3c02d..6a8531b6d5fc6ec84d346bf644eaf579ebe70c49:/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)';