From 1aa91db86656f5a675dc83034e26554c4dda5d72 Mon Sep 17 00:00:00 2001 From: Katharine Ahern Date: Thu, 5 Sep 2024 12:54:15 +0100 Subject: [PATCH] ap 5231: amend_incomplete auery to use ccms_matter_code not matter_type --- app/services/query/incomplete_proceedings.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/query/incomplete_proceedings.rb b/app/services/query/incomplete_proceedings.rb index a99cd9b673..1384dbc18d 100644 --- a/app/services/query/incomplete_proceedings.rb +++ b/app/services/query/incomplete_proceedings.rb @@ -25,9 +25,9 @@ def query ( NOT EXISTS (select 'has_scope_limitations' FROM scope_limitations where (proceeding_id = proceedings.id)) OR (used_delegated_functions IS NULL) - OR (accepted_substantive_defaults IS NULL AND matter_type != 'Special Children Act') + OR (accepted_substantive_defaults IS NULL AND ccms_matter_code != 'KPBLW') OR (client_involvement_type_ccms_code IS NULL) - OR (used_delegated_functions = true AND accepted_emergency_defaults IS NULL AND matter_type != 'Special Children Act') + OR (used_delegated_functions = true AND accepted_emergency_defaults IS NULL AND ccms_matter_code != 'KPBLW') OR (accepted_substantive_defaults = false AND (substantive_level_of_service IS NULL OR substantive_level_of_service_name IS NULL