Neue Version podchecker erkennt leere Setions und fehlende Leerzeilen
[kivitendo-erp.git] / SL / WH.pm
index eb37626..9a06356 100644 (file)
--- a/SL/WH.pm
+++ b/SL/WH.pm
@@ -626,6 +626,9 @@ sub get_warehouse_report {
     push @filter_ary, "i.itime <= ?";
     push @filter_vars, $filter{date};
   }
+  if (!$filter{include_invalid_warehouses}){
+    push @filter_ary,  "NOT (w.invalid)";
+  }
 
   # prepare qty comparison for later filtering
   my ($f_qty_op, $f_qty, $f_qty_base_unit);
@@ -1020,6 +1023,8 @@ An expiration date. Note that this is not by default used by C<warehouse_report>
 
 =head1 BUGS
 
+None yet.
+
 =head1 AUTHOR
 
 =cut