changed names

This commit is contained in:
Joaquin Ossa 2025-01-24 08:30:05 +01:00
parent 49a10fe249
commit f7bacc2310
2 changed files with 17 additions and 12 deletions

View file

@ -288,9 +288,10 @@ with
host_resolutions.xero_host_resolution_payment_count,
cast(host_resolutions.xero_host_resolution_amount_paid_in_gbp as decimal)
/ created_bookings.created_bookings
as xero_host_resolution_payment_per_booking_in_gbp,
as host_resolution_amount_paid_per_created_booking,
cast(host_resolutions.xero_host_resolution_payment_count as decimal)
/ created_bookings.created_bookings as xero_host_resolution_payment_ratio,
/ created_bookings.created_bookings
as host_resolution_payment_per_created_booking_ratio,
-- GUEST REVENUE AND PAYMENTS --
guest_payments.deposit_fees_in_gbp,
@ -558,10 +559,14 @@ select
{{ calculate_safe_relative_increment("xero_host_resolution_payment_count") }},
{{
calculate_safe_relative_increment(
"xero_host_resolution_payment_per_booking_in_gbp"
"host_resolution_amount_paid_per_created_booking"
)
}},
{{
calculate_safe_relative_increment(
"host_resolution_payment_per_created_booking_ratio"
)
}},
{{ calculate_safe_relative_increment("xero_host_resolution_payment_ratio") }},
-- GUEST REVENUE --
{{ calculate_safe_relative_increment("deposit_fees_in_gbp") }},