upgraded screening
This commit is contained in:
parent
ca5db795a3
commit
ce4e81749b
4 changed files with 29 additions and 0 deletions
|
|
@ -109,6 +109,21 @@ select
|
||||||
then true
|
then true
|
||||||
else false
|
else false
|
||||||
end as has_screening_service_business_type,
|
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
|
case
|
||||||
when
|
when
|
||||||
sum(
|
sum(
|
||||||
|
|
|
||||||
|
|
@ -4398,6 +4398,12 @@ models:
|
||||||
Flag to identify if the booking contains any Screening service
|
Flag to identify if the booking contains any Screening service
|
||||||
or not.
|
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
|
- name: has_deposit_management_service_business_type
|
||||||
data_type: boolean
|
data_type: boolean
|
||||||
description: |
|
description: |
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@ select
|
||||||
b.is_booking_cancelled as is_booking_cancelled,
|
b.is_booking_cancelled as is_booking_cancelled,
|
||||||
b.has_upgraded_services as has_upgraded_services,
|
b.has_upgraded_services as has_upgraded_services,
|
||||||
b.has_screening_service_business_type as has_screening_service_business_type,
|
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
|
b.has_deposit_management_service_business_type
|
||||||
as 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
|
b.has_protection_service_business_type as has_protection_service_business_type
|
||||||
|
|
|
||||||
|
|
@ -1464,6 +1464,12 @@ models:
|
||||||
Flag to identify if the booking contains any Screening service
|
Flag to identify if the booking contains any Screening service
|
||||||
or not.
|
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
|
- name: has_deposit_management_service_business_type
|
||||||
data_type: boolean
|
data_type: boolean
|
||||||
description: |
|
description: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue