From 3e3b7f049e380d5aa6d6ff304f5b0089dd51150d Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 11 Jun 2025 14:34:44 +0200 Subject: [PATCH] Removed changes --- .../cross/int_mtd_aggregated_metrics.sql | 11 ------ .../int_mtd_vs_previous_year_metrics.sql | 2 - ...int_kpis__agg_monthly_invoiced_revenue.sql | 1 - .../int_kpis__agg_mtd_invoiced_revenue.sql | 1 - ...nt_kpis__metric_daily_invoiced_revenue.sql | 7 ---- ..._kpis__metric_monthly_invoiced_revenue.sql | 1 - .../int_kpis__metric_mtd_invoiced_revenue.sql | 1 - models/intermediate/kpis/schema.yml | 37 ------------------- 8 files changed, 61 deletions(-) diff --git a/models/intermediate/cross/int_mtd_aggregated_metrics.sql b/models/intermediate/cross/int_mtd_aggregated_metrics.sql index 4177787..737e064 100644 --- a/models/intermediate/cross/int_mtd_aggregated_metrics.sql +++ b/models/intermediate/cross/int_mtd_aggregated_metrics.sql @@ -692,17 +692,6 @@ "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", diff --git a/models/intermediate/cross/int_mtd_vs_previous_year_metrics.sql b/models/intermediate/cross/int_mtd_vs_previous_year_metrics.sql index 07fdadd..56d554d 100644 --- a/models/intermediate/cross/int_mtd_vs_previous_year_metrics.sql +++ b/models/intermediate/cross/int_mtd_vs_previous_year_metrics.sql @@ -233,7 +233,6 @@ 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 -- @@ -489,7 +488,6 @@ 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 -- diff --git a/models/intermediate/kpis/int_kpis__agg_monthly_invoiced_revenue.sql b/models/intermediate/kpis/int_kpis__agg_monthly_invoiced_revenue.sql index 007b3e6..abbcaf6 100644 --- a/models/intermediate/kpis/int_kpis__agg_monthly_invoiced_revenue.sql +++ b/models/intermediate/kpis/int_kpis__agg_monthly_invoiced_revenue.sql @@ -51,7 +51,6 @@ sum( xero_screen_and_protect_net_fees_in_gbp ) as xero_screen_and_protect_net_fees_in_gbp, - sum(xero_flex_api_net_fees_in_gbp) as xero_flex_api_net_fees_in_gbp, sum(xero_guesty_net_fees_in_gbp) as xero_guesty_net_fees_in_gbp, sum(xero_apis_net_fees_in_gbp) as xero_apis_net_fees_in_gbp, sum( diff --git a/models/intermediate/kpis/int_kpis__agg_mtd_invoiced_revenue.sql b/models/intermediate/kpis/int_kpis__agg_mtd_invoiced_revenue.sql index 990b488..70b048b 100644 --- a/models/intermediate/kpis/int_kpis__agg_mtd_invoiced_revenue.sql +++ b/models/intermediate/kpis/int_kpis__agg_mtd_invoiced_revenue.sql @@ -51,7 +51,6 @@ sum( xero_screen_and_protect_net_fees_in_gbp ) as xero_screen_and_protect_net_fees_in_gbp, - sum(xero_flex_api_net_fees_in_gbp) as xero_flex_api_net_fees_in_gbp, sum(xero_guesty_net_fees_in_gbp) as xero_guesty_net_fees_in_gbp, sum(xero_apis_net_fees_in_gbp) as xero_apis_net_fees_in_gbp, sum( diff --git a/models/intermediate/kpis/int_kpis__metric_daily_invoiced_revenue.sql b/models/intermediate/kpis/int_kpis__metric_daily_invoiced_revenue.sql index 1de19a4..e83b89a 100644 --- a/models/intermediate/kpis/int_kpis__metric_daily_invoiced_revenue.sql +++ b/models/intermediate/kpis/int_kpis__metric_daily_invoiced_revenue.sql @@ -188,13 +188,6 @@ select else 0 end ) as xero_screen_and_protect_net_fees_in_gbp, - sum( - case - when ixsdm.accounting_root_aggregation = 'Flex API' - then ixsdm.line_amount_wo_taxes_in_gbp - else 0 - end - ) as xero_flex_api_net_fees_in_gbp, sum( case when ixsdm.accounting_root_aggregation = 'Guesty Resolutions' diff --git a/models/intermediate/kpis/int_kpis__metric_monthly_invoiced_revenue.sql b/models/intermediate/kpis/int_kpis__metric_monthly_invoiced_revenue.sql index d5ff007..04f8174 100644 --- a/models/intermediate/kpis/int_kpis__metric_monthly_invoiced_revenue.sql +++ b/models/intermediate/kpis/int_kpis__metric_monthly_invoiced_revenue.sql @@ -56,7 +56,6 @@ select sum( ir.xero_screen_and_protect_net_fees_in_gbp ) as xero_screen_and_protect_net_fees_in_gbp, - sum(ir.xero_flex_api_net_fees_in_gbp) as xero_flex_api_net_fees_in_gbp, sum(ir.xero_guesty_net_fees_in_gbp) as xero_guesty_net_fees_in_gbp, sum(ir.xero_apis_net_fees_in_gbp) as xero_apis_net_fees_in_gbp, sum( diff --git a/models/intermediate/kpis/int_kpis__metric_mtd_invoiced_revenue.sql b/models/intermediate/kpis/int_kpis__metric_mtd_invoiced_revenue.sql index fdd5c06..47cb643 100644 --- a/models/intermediate/kpis/int_kpis__metric_mtd_invoiced_revenue.sql +++ b/models/intermediate/kpis/int_kpis__metric_mtd_invoiced_revenue.sql @@ -56,7 +56,6 @@ select sum( ir.xero_screen_and_protect_net_fees_in_gbp ) as xero_screen_and_protect_net_fees_in_gbp, - sum(ir.xero_flex_api_net_fees_in_gbp) as xero_flex_api_net_fees_in_gbp, sum(ir.xero_guesty_net_fees_in_gbp) as xero_guesty_net_fees_in_gbp, sum(ir.xero_apis_net_fees_in_gbp) as xero_apis_net_fees_in_gbp, sum( diff --git a/models/intermediate/kpis/schema.yml b/models/intermediate/kpis/schema.yml index fb9248a..cdb0106 100644 --- a/models/intermediate/kpis/schema.yml +++ b/models/intermediate/kpis/schema.yml @@ -4471,13 +4471,6 @@ models: in a given date and per specified dimension. This is an API service. - - name: xero_flex_api_net_fees_in_gbp - data_type: decimal - description: | - Sum of daily Flex API Net Fees, in GBP, without taxes - in a given date and per specified dimension. This is an - API service. - - name: xero_athena_net_fees_in_gbp data_type: decimal description: | @@ -4701,13 +4694,6 @@ models: in a given month and per specified dimension. This is an API service. - - name: xero_flex_api_net_fees_in_gbp - data_type: decimal - description: | - Sum of daily Flex API Net Fees, in GBP, without taxes - in a given date and per specified dimension. This is an - API service. - - name: xero_athena_net_fees_in_gbp data_type: decimal description: | @@ -4925,13 +4911,6 @@ models: in a given month up to the given date and per specified dimension. This is an API service. - - name: xero_flex_api_net_fees_in_gbp - data_type: decimal - description: | - Sum of daily Flex API Net Fees, in GBP, without taxes - in a given date and per specified dimension. This is an - API service. - - name: xero_athena_net_fees_in_gbp data_type: decimal description: | @@ -5011,7 +4990,6 @@ models: - xero_e_deposit_net_fees_in_gbp - xero_check_in_hero_api_net_fees_in_gbp - xero_screen_and_protect_net_fees_in_gbp - - xero_flex_api_net_fees_in_gbp - xero_athena_net_fees_in_gbp - xero_guesty_resolutions_net_fees_in_gbp - xero_guesty_net_fees_in_gbp @@ -5136,13 +5114,6 @@ models: for a given date, dimension and value. This is an API service. - - name: xero_flex_api_net_fees_in_gbp - data_type: decimal - description: | - Sum of daily Flex API Net Fees, in GBP, without taxes - in a given date and per specified dimension. This is an - API service. - - name: xero_athena_net_fees_in_gbp data_type: decimal description: | @@ -5220,7 +5191,6 @@ models: - xero_e_deposit_net_fees_in_gbp - xero_check_in_hero_api_net_fees_in_gbp - xero_screen_and_protect_net_fees_in_gbp - - xero_flex_api_net_fees_in_gbp - xero_athena_net_fees_in_gbp - xero_guesty_resolutions_net_fees_in_gbp - xero_guesty_net_fees_in_gbp @@ -5346,13 +5316,6 @@ models: for a given date, dimension and value. This is an API service. - - name: xero_flex_api_net_fees_in_gbp - data_type: decimal - description: | - Sum of daily Flex API Net Fees, in GBP, without taxes - in a given date and per specified dimension. This is an - API service. - - name: xero_athena_net_fees_in_gbp data_type: decimal description: |