X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FWH.pm;h=9a0635603af2a34e21b1d476d2083f8d96fb81ca;hb=f2b76d67f773954dcfa59ff7c3ebb6f6607e2e43;hp=eb376268222ebeb56c02a5a1821d1dfe7a97fa7f;hpb=e0ad5757c7f9551f808b55c114ff8892f09689f4;p=kivitendo-erp.git diff --git a/SL/WH.pm b/SL/WH.pm index eb3762682..9a0635603 100644 --- 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 =head1 BUGS +None yet. + =head1 AUTHOR =cut