Merged PR 4542: New dash guest agreement fix
# Description Small fix for the new Guest Agreement service in New Dash # Checklist - [x] The edited models and dependants run properly with production data. - [x] The edited models are sufficiently documented. - [x] The edited models contain PK tests, and I've ran and passed them. - [ ] I have checked for DRY opportunities with other models and docs. - [ ] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged. new dash guest agreement fix Related work items: #28068
This commit is contained in:
commit
eeb47cf6d8
3 changed files with 10 additions and 2 deletions
|
|
@ -3775,8 +3775,8 @@ models:
|
|||
- name: service_business_type
|
||||
data_type: string
|
||||
description: |
|
||||
Identifies the service type (Screening, Deposit Management, Protection)
|
||||
according to New Pricing documentation.
|
||||
Identifies the service type (Screening, Deposit Management, Protection
|
||||
or Guest Agreement) according to New Pricing documentation.
|
||||
Cannot be null.
|
||||
data_tests:
|
||||
- not_null
|
||||
|
|
@ -3785,6 +3785,7 @@ models:
|
|||
- SCREENING
|
||||
- PROTECTION
|
||||
- DEPOSIT_MANAGEMENT
|
||||
- GUEST_AGREEMENT
|
||||
- UNKNOWN
|
||||
|
||||
- name: service_source
|
||||
|
|
|
|||
|
|
@ -567,6 +567,7 @@ models:
|
|||
values:
|
||||
- "SCREENING"
|
||||
- "DEPOSIT_MANAGEMENT"
|
||||
- "GUEST_AGREEMENT"
|
||||
|
||||
- name: is_default_service
|
||||
data_type: boolean
|
||||
|
|
|
|||
|
|
@ -35,6 +35,12 @@ select
|
|||
9 -- 'WAIVER PRO'
|
||||
)
|
||||
then 'DEPOSIT_MANAGEMENT'
|
||||
when
|
||||
id_product_service in (
|
||||
|
||||
10 -- 'GUEST AGREEMENT'
|
||||
)
|
||||
then 'GUEST_AGREEMENT'
|
||||
else null
|
||||
end as service_business_type,
|
||||
product_service_name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue