data-dwh-dbt-project/models/intermediate/cross
Oriol Roqué Paniagua b79df1b42e Merged PR 2433: Remove Deposit payments from Guest Payments metric
After discussion with Pablo on the fact that Deposits are only with status "Paid" for a given time before they get Cancelled or Refunded, we just believe it's best to remove the Deposits amount from the Guest Payments metric. In any case, this does not represent a Revenue source... This was discovered while doing the data quality assessment for revenue figures ([here](https://www.notion.so/knowyourguest-superhog/Data-quality-assessment-DWH-vs-Finance-revenue-figures-6e3d6b75cdd4463687de899da8aab6fb))

Before, `total_guest_payments_in_gbp` was a standalone metric that computed any payment by the guest with status paid. We were computing revenue based on the `total_guest_income_in_gbp`, which mainly was the sum of waiver payments, deposit fees (not deposit itself!) and check in hero fees.

Mainly what I did is:
- remove the existing `total_guest_payments_in_gbp` in the source models (int_core__xxx_guest_payments_xxx)
- rename the already existing `total_guest_income_in_gbp` to `total_guest_payments_in_gbp`

Related work items: #18787, #18914
2024-07-29 15:15:09 +00:00
..
int_daily_currency_exchange_rates.sql go back to var, made a mistake in the last commit 2024-06-17 11:32:20 +02:00
int_dates.sql start cross folder in int to stop piling models at int root 2024-06-14 16:26:18 +02:00
int_dates_by_deal.sql Merged PR 2164: Adding booking metrics by deal id for business kpis 2024-07-01 16:00:14 +00:00
int_dates_mtd.sql Merged PR 2158: Allow last day of the month to appear on 1st of month 2024-07-01 07:53:38 +00:00
int_monthly_aggregated_metrics_history_by_deal.sql Merged PR 2433: Remove Deposit payments from Guest Payments metric 2024-07-29 15:15:09 +00:00
int_mtd_aggregated_metrics.sql Merged PR 2429: Business KPIs - Revenue details 2024-07-29 13:16:19 +00:00
int_mtd_vs_previous_year_metrics.sql Merged PR 2433: Remove Deposit payments from Guest Payments metric 2024-07-29 15:15:09 +00:00
int_simple_exchange_rates.sql simple model 2024-06-14 16:44:40 +02:00
schema.yml Merged PR 2422: Ensure that guest payments models follow nomenclature 2024-07-29 09:10:58 +00:00