From af7201e1a78eb412c6595352454e39041ab855cb Mon Sep 17 00:00:00 2001 From: Adam Goldstone <13471320+agoldstone93@users.noreply.github.com> Date: Thu, 5 Sep 2024 15:39:26 +0100 Subject: [PATCH] AP-4216: update query to use matter code rather than name --- app/services/query/incomplete_proceedings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/query/incomplete_proceedings.rb b/app/services/query/incomplete_proceedings.rb index f1f6d76dcc..a1b5c0314c 100644 --- a/app/services/query/incomplete_proceedings.rb +++ b/app/services/query/incomplete_proceedings.rb @@ -25,7 +25,7 @@ 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) OR (accepted_substantive_defaults = false