Merged PR 2749: Silly mistake fixed

# Description

_Describe your motivation and changes here._

# 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.
- [x] I have checked for DRY opportunities with other models and docs.
- [x] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

Silly mistake fixed
This commit is contained in:
Joaquin Ossa 2024-09-05 10:47:13 +00:00
commit 01115e0594
3 changed files with 6 additions and 6 deletions

View file

@ -20,12 +20,12 @@ with
cer.rate,
v.is_cancelled,
case
when v.verification_status in {{ ok_status }}
when v.verification_status in {{ ok_status }} and is_cancelled = false
then v.nightly_fee_local * v.number_nights
else 0
end as ok_status_fee_in_txn_currency,
case
when v.verification_status in {{ ok_status }}
when v.verification_status in {{ ok_status }} and is_cancelled = false
then cer.rate * v.nightly_fee_local * v.number_nights
else 0
end as ok_status_fee_in_gbp,

View file

@ -242,7 +242,7 @@ models:
- name: ok_status_fee_in_txn_currency
data_type: numeric
description: "fee charged in used currency for approved or flagged verifications"
description: "fee charged in used currency for approved or flagged verifications and not cancelled"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_between:
@ -251,7 +251,7 @@ models:
- name: ok_status_fee_in_gbp
data_type: numeric
description: "fee charged in gbp for approved or flagged verifications"
description: "fee charged in gbp for approved or flagged verifications and not cancelled"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_between:

View file

@ -34,7 +34,7 @@ models:
- name: ok_status_fee_in_txn_currency
data_type: numeric
description: "fee charged in used currency for approved or flagged verifications"
description: "fee charged in used currency for approved or flagged verifications and not cancelled"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_between:
@ -43,7 +43,7 @@ models:
- name: ok_status_fee_in_gbp
data_type: numeric
description: "fee charged in gbp for approved or flagged verifications"
description: "fee charged in gbp for approved or flagged verifications and not cancelled"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_between: