IMPORTANT: this PR was merged and reverted. The division by 0 error has been fixed in the last commit Adds the following metrics: - Guest Revenue by both visions (global and by deal id) It creates 2 new models: - int_mtd_guest_revenue_metrics - int_monthly_guest_revenue_history_by_deal the approaches are similar in the sense that we retrieve the information from the int_core__verification_payments and a filter by a PAID status. I checked and the aggregated volumes of the figures correspond to the decimal as what is reported to the guest_payments dashboard (aggregating the information from the currency tab) Same as last PR, this one does not exposes the data since a refactor of how the code is structured will follow shortly. Related work items: #18107 |
||
|---|---|---|
| .. | ||
| int_daily_currency_exchange_rates.sql | ||
| int_dates.sql | ||
| int_dates_by_deal.sql | ||
| int_dates_mtd.sql | ||
| int_monthly_guest_revenue_history_by_deal.sql | ||
| int_mtd_guest_revenue_metrics.sql | ||
| int_simple_exchange_rates.sql | ||
| schema.yml | ||