]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/IC.pm
Warensuche: Verkaufte Anzahl kann auch kleiner als 0 sein, für Stornos
[kivitendo-erp.git] / SL / IC.pm
index bce0debe7955d160541779084c42d9bb49cd567b..30aa8cf0d256078ba5f437b7e0d13e89dade3629 100644 (file)
--- 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)';