New API invoices

This commit is contained in:
Joaquin 2025-04-16 14:27:23 +02:00
parent 587661f818
commit 2c7e396c2c
11 changed files with 156 additions and 0 deletions

View file

@ -174,6 +174,20 @@ select
else 0
end
) as xero_athena_net_fees_in_gbp,
sum(
case
when ixsdm.accounting_root_aggregation = 'Check in Hero API'
then ixsdm.line_amount_wo_taxes_in_gbp
else 0
end
) as xero_check_in_hero_api_net_fees_in_gbp,
sum(
case
when ixsdm.accounting_root_aggregation = 'Screen and Protect API'
then ixsdm.line_amount_wo_taxes_in_gbp
else 0
end
) as xero_screen_and_protect_api_net_fees_in_gbp,
sum(
case
when ixsdm.accounting_root_aggregation = 'Guesty Resolutions'