data-dwh-dbt-project/models
Oriol Roqué Paniagua 3fe9ac140e Merged PR 4031: Host Resolutions KPIs bugfix
# Description

Ensure only Authorised states are selected in bank transactions for Host Resolutions KPIs.

Waiting for final confirmation from Suzannah but I'm pretty sure about this since it's consistent with the P&L (and does not make sense to consider DELETED bank transactions anyway)

For reference, here's the current values in prod for `xero_host_resolution_amount_paid_in_gbp` (top3):
* 2024-12-31	-74318
* 2024-11-30	-87935
* 2024-10-31	-73840

and here the same with this fix. Note that the difference is mostly in November:
* 2024-12-31	-73581
* 2024-11-30	-74803
* 2024-10-31	-72473

# Checklist

- [X] The edited models and dependants run properly with production data.
- [X] The edited models are sufficiently documented.
- [X] The edited models contain PK tests, and I've ran and passed them.
- [X] I have checked for DRY opportunities with other models and docs.
- [X] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

Related work items: #26247
2025-01-13 09:19:24 +00:00
..
intermediate Merged PR 4031: Host Resolutions KPIs bugfix 2025-01-13 09:19:24 +00:00
reporting Merged PR 4020: Expose new KPIs 2025-01-10 10:07:00 +00:00
staging Merged PR 3909: Fixes created_date_utc and updated_date_utc in SH User and its dependencies 2024-12-31 08:04:03 +00:00
doc_blocks.md improve stg_stripe__charges 2024-02-23 16:45:19 +01:00