Add Flex API into KPI models

This commit is contained in:
Joaquin 2025-06-11 14:44:07 +02:00
parent 0021827368
commit 4a4e17f068
8 changed files with 61 additions and 0 deletions

View file

@ -692,6 +692,17 @@
"display_exclusion": "INVOICING",
"include_in_account_reporting": false,
},
{
"order_by": 249,
"metric": "Invoiced Flex API Revenue",
"value": "xero_flex_api_net_fees_in_gbp",
"previous_year_value": "previous_year_xero_flex_api_net_fees_in_gbp",
"relative_increment": "relative_increment_xero_flex_api_net_fees_in_gbp",
"number_format": "currency_gbp",
"increment_sign_format": "positive",
"display_exclusion": "INVOICING",
"include_in_account_reporting": false,
},
{
"order_by": 250,
"metric": "Guest Revenue",

View file

@ -233,6 +233,7 @@ with
invoiced_revenue.xero_e_deposit_net_fees_in_gbp,
invoiced_revenue.xero_check_in_hero_api_net_fees_in_gbp,
invoiced_revenue.xero_screen_and_protect_net_fees_in_gbp,
invoiced_revenue.xero_flex_api_net_fees_in_gbp,
invoiced_revenue.xero_guesty_net_fees_in_gbp,
-- HOST RESOLUTIONS --
@ -488,6 +489,7 @@ select
{{ calculate_safe_relative_increment("xero_e_deposit_net_fees_in_gbp") }},
{{ calculate_safe_relative_increment("xero_check_in_hero_api_net_fees_in_gbp") }},
{{ calculate_safe_relative_increment("xero_screen_and_protect_net_fees_in_gbp") }},
{{ calculate_safe_relative_increment("xero_flex_api_net_fees_in_gbp") }},
{{ calculate_safe_relative_increment("xero_guesty_net_fees_in_gbp") }},
-- HOST RESOLUTIONS --