Merged PR 2869: Update mtd_aggregated_metrics guest payments to be tax-exclusive

# Description

Update mtd_aggregated_metrics guest payments to be tax-exclusive

# 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.

Update mtd_aggregated_metrics guest payments to be tax-exclusive

Related work items: #20045
This commit is contained in:
Joaquin Ossa 2024-09-17 07:27:08 +00:00
commit ae1e45a937
2 changed files with 5 additions and 5 deletions

View file

@ -9,7 +9,7 @@ with
select * from {{ ref("int_core__verification_requests") }}
),
int_core__verification_payments as (
select * from {{ ref("int_core__verification_payments") }}
select * from {{ ref("int_core__verification_payments", version=2) }}
),
int_dates_by_deal as (select * from {{ ref("int_dates_by_deal") }}),
int_core__unified_user as (select * from {{ ref("int_core__unified_user") }}),

View file

@ -13,7 +13,7 @@ with
select * from {{ ref("int_core__verification_requests") }}
),
int_core__verification_payments as (
select * from {{ ref("int_core__verification_payments") }}
select * from {{ ref("int_core__verification_payments", version=2) }}
),
int_dates_by_deal as (select * from {{ ref("int_dates_by_deal") }}),
int_core__unified_user as (select * from {{ ref("int_core__unified_user") }}),
@ -28,7 +28,7 @@ with
when
upper(vp.verification_payment_type)
in {{ deposit_fees_verification_payment_type_items }}
then vp.amount_in_gbp
then vp.amount_without_taxes_in_gbp
else null
end
) as deposit_fees_in_gbp,
@ -37,7 +37,7 @@ with
when
upper(vp.verification_payment_type)
in {{ waiver_fees_verification_payment_type_items }}
then vp.amount_in_gbp
then vp.amount_without_taxes_in_gbp
else null
end
) as waiver_payments_in_gbp,
@ -46,7 +46,7 @@ with
when
upper(vp.verification_payment_type)
in {{ checkin_cover_fees_verification_payment_type_items }}
then vp.amount_in_gbp
then vp.amount_without_taxes_in_gbp
else null
end
) as checkin_cover_fees_in_gbp