X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/71041661bf4a8e0ad75a20d9252dc501b3611657..98b64fe1e380c232428d63cea0eb5f44b1d1a2c3:/SL/Common.pm diff --git a/SL/Common.pm b/SL/Common.pm index f6a72679a..b70378e66 100644 --- a/SL/Common.pm +++ b/SL/Common.pm @@ -67,14 +67,14 @@ sub retrieve_parts { } if ($form->{no_assemblies}) { - $filter .= qq| AND (NOT COALESCE(assembly, FALSE))|; + $filter .= qq| AND (NOT part_type = 'assembly')|; } if ($form->{assemblies}) { - $filter .= qq| AND assembly=TRUE|; + $filter .= qq| AND part_type = 'assembly'|; } if ($form->{no_services}) { - $filter .= qq| AND (inventory_accno_id is not NULL or assembly=TRUE)|; + $filter .= qq| AND NOT (part_type = 'service' OR part_type = 'assembly')|; } substr($filter, 1, 3) = "WHERE" if ($filter);