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

@ -188,6 +188,13 @@ 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'