From d7b7f7630dc4208f54222c049bc68a87ac65782f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 20 Feb 2009 14:01:58 +0000 Subject: [PATCH] Artikel mit negativem Lagerbestand ebenfalls im Bericht ausgeben, damit dieser vom Benutzer korrigiert werden kann. --- SL/WH.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/WH.pm b/SL/WH.pm index 3428b91bc..8bf43210f 100644 --- a/SL/WH.pm +++ b/SL/WH.pm @@ -463,6 +463,7 @@ sub get_warehouse_report { GROUP BY $group_clause $group_by ORDER BY $form->{sort}|; + dump_query(0, "q", $query, @filter_vars); my $sth = prepare_execute_query($form, $dbh, $query, @filter_vars); my (%non_empty_bins, @all_fields, @contents); @@ -471,7 +472,7 @@ sub get_warehouse_report { $ref->{qty} *= 1; my $qty = $ref->{qty}; - next unless ($qty > 0); + next unless ($qty != 0); if ($f_qty_op) { my $part_unit = $all_units->{$ref->{partunit}}; -- 2.20.1