From 50a8a512fe5259921af3e452c7c4eeed9d4c29b0 Mon Sep 17 00:00:00 2001 From: Joaquin Ossa Date: Tue, 17 Sep 2024 08:38:33 +0200 Subject: [PATCH] Update mtd_aggregated_metrics guest payments to be tax-exclusive --- .../int_core__monthly_guest_journey_history_by_deal.sql | 2 +- .../int_core__monthly_guest_payments_history_by_deal.sql | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/models/intermediate/core/int_core__monthly_guest_journey_history_by_deal.sql b/models/intermediate/core/int_core__monthly_guest_journey_history_by_deal.sql index 75023ea..458987f 100644 --- a/models/intermediate/core/int_core__monthly_guest_journey_history_by_deal.sql +++ b/models/intermediate/core/int_core__monthly_guest_journey_history_by_deal.sql @@ -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") }}), diff --git a/models/intermediate/core/int_core__monthly_guest_payments_history_by_deal.sql b/models/intermediate/core/int_core__monthly_guest_payments_history_by_deal.sql index 8a4d27c..85f9c37 100644 --- a/models/intermediate/core/int_core__monthly_guest_payments_history_by_deal.sql +++ b/models/intermediate/core/int_core__monthly_guest_payments_history_by_deal.sql @@ -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