upgraded screening

This commit is contained in:
Joaquin 2025-04-08 12:09:08 +02:00
parent ca5db795a3
commit ce4e81749b
4 changed files with 29 additions and 0 deletions

View file

@ -109,6 +109,21 @@ select
then true
else false
end as has_screening_service_business_type,
case
when
sum(
case
when
bsd.service_business_type = 'SCREENING'
and bsd.service_name <> {{ var("default_service") }}
then 1
else 0
end
)
> 0
then true
else false
end as has_upgraded_screening_service_business_type,
case
when
sum(

View file

@ -4398,6 +4398,12 @@ models:
Flag to identify if the booking contains any Screening service
or not.
- name: has_upgraded_screening_service_business_type
data_type: boolean
description: |
Flag to identify if the booking contains any Screening services
different from Basic Screening.
- name: has_deposit_management_service_business_type
data_type: boolean
description: |

View file

@ -29,6 +29,8 @@ select
b.is_booking_cancelled as is_booking_cancelled,
b.has_upgraded_services as has_upgraded_services,
b.has_screening_service_business_type as has_screening_service_business_type,
b.has_upgraded_screening_service_business_type
as has_upgraded_screening_service_business_type,
b.has_deposit_management_service_business_type
as has_deposit_management_service_business_type,
b.has_protection_service_business_type as has_protection_service_business_type

View file

@ -1464,6 +1464,12 @@ models:
Flag to identify if the booking contains any Screening service
or not.
- name: has_upgraded_screening_service_business_type
data_type: boolean
description: |
Flag to identify if the booking contains any Screening services
different from Basic Screening.
- name: has_deposit_management_service_business_type
data_type: boolean
description: |