X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/fcbc700916d7cee50c7befdf2c4757e421b4dcc2..0c1b51b8ad98f6b1739af1744a640bd1d1a86e1f:/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);