Silly mistake fixed
This commit is contained in:
parent
435db55c1e
commit
82629e040b
3 changed files with 6 additions and 6 deletions
|
|
@ -20,12 +20,12 @@ with
|
||||||
cer.rate,
|
cer.rate,
|
||||||
v.is_cancelled,
|
v.is_cancelled,
|
||||||
case
|
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
|
then v.nightly_fee_local * v.number_nights
|
||||||
else 0
|
else 0
|
||||||
end as ok_status_fee_in_txn_currency,
|
end as ok_status_fee_in_txn_currency,
|
||||||
case
|
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
|
then cer.rate * v.nightly_fee_local * v.number_nights
|
||||||
else 0
|
else 0
|
||||||
end as ok_status_fee_in_gbp,
|
end as ok_status_fee_in_gbp,
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,7 @@ models:
|
||||||
|
|
||||||
- name: ok_status_fee_in_txn_currency
|
- name: ok_status_fee_in_txn_currency
|
||||||
data_type: numeric
|
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:
|
tests:
|
||||||
- not_null
|
- not_null
|
||||||
- dbt_expectations.expect_column_values_to_be_between:
|
- dbt_expectations.expect_column_values_to_be_between:
|
||||||
|
|
@ -251,7 +251,7 @@ models:
|
||||||
|
|
||||||
- name: ok_status_fee_in_gbp
|
- name: ok_status_fee_in_gbp
|
||||||
data_type: numeric
|
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:
|
tests:
|
||||||
- not_null
|
- not_null
|
||||||
- dbt_expectations.expect_column_values_to_be_between:
|
- dbt_expectations.expect_column_values_to_be_between:
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ models:
|
||||||
|
|
||||||
- name: ok_status_fee_in_txn_currency
|
- name: ok_status_fee_in_txn_currency
|
||||||
data_type: numeric
|
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:
|
tests:
|
||||||
- not_null
|
- not_null
|
||||||
- dbt_expectations.expect_column_values_to_be_between:
|
- dbt_expectations.expect_column_values_to_be_between:
|
||||||
|
|
@ -43,7 +43,7 @@ models:
|
||||||
|
|
||||||
- name: ok_status_fee_in_gbp
|
- name: ok_status_fee_in_gbp
|
||||||
data_type: numeric
|
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:
|
tests:
|
||||||
- not_null
|
- not_null
|
||||||
- dbt_expectations.expect_column_values_to_be_between:
|
- dbt_expectations.expect_column_values_to_be_between:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue