Skip to content

Commit

Permalink
Map 1040 - Add court columns to incomplete per report (#2249)
Browse files Browse the repository at this point in the history
* Made changes to add columns to per status tab indicating whether the from and to lcoations are a court.

* Made required changes to SQL query within cronjob yaml to change the current "supplier_from_court" column, to two columns indicating whether each the "from" and "to" location are a court or not.
  • Loading branch information
jonesj2193 committed May 16, 2024
1 parent 5af7b78 commit f38abda
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 8 additions & 4 deletions reports/monthly-incomplete-per/01-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,14 @@ data:
getstatus(info."health-information") as health,
getstatus(info."property-information") as property,
dupe.dupe as dupe,
CASE
WHEN s.name is not null and l.location_type = 'court' then 'true'
ELSE null
END as supplier_from_court,
CASE
WHEN l.location_type = 'court' then 'true'
ELSE null
END as from_location_court,
CASE
WHEN t.location_type = 'court' then 'true'
ELSE null
END as to_location_court,
m.allocation_id as allocation,
'https://bookasecuremove.service.justice.gov.uk/move/' || m.id as url
from moves m
Expand Down
8 changes: 6 additions & 2 deletions reports/monthly-per/incompletePerStatus.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ m.status,
getstatus(info."property-information") as property,
dupe.dupe as dupe,
CASE
WHEN s.name is not null and l.location_type = 'court' then 'true'
WHEN l.location_type = 'court' then 'true'
ELSE null
END as supplier_from_court,
END as from_location_court,
CASE
WHEN t.location_type = 'court' then 'true'
ELSE null
END as to_location_court,
m.allocation_id as allocation,
'https://bookasecuremove.service.justice.gov.uk/move/' || m.id as url
from moves m
Expand Down

0 comments on commit f38abda

Please sign in to comment.