data-dwh-dbt-project/models/intermediate/xero
Oriol Roqué Paniagua 3f1e2ea1d9 Merged PR 4572: Applies logic to modify the invoicing cycle date depending on the issuing source
# Description

Hyperline invoices/credit notes have an issuing date that corresponds to the moment in which these are actually created.

This is an issue since it means that an invoice or credit note posted today, 4th March 2025, that is supposed to be related to February 2025 invoicing cycle, will have:

* If the document is posted in Hyperline, an issuing date on the March 2025
* If the document is NOT posted in Hyperline, an issuing date on February 2025

This PR just creates a field that handles the logic effectively, to be used further in other reports/kpis purposes.

# 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: #28158
2025-03-04 11:32:52 +00:00
..
int_xero__bank_transaction_line_items.sql apply transaction sign in line items 2024-07-01 11:45:03 +02:00
int_xero__bank_transactions.sql propagate transaction sign 2024-07-01 11:44:55 +02:00
int_xero__contacts.sql a few small details 2024-05-14 16:20:48 +02:00
int_xero__credit_note_line_items.sql Merged PR 2349: Retrieve account for xero invoices, credit notes and sales denom mart 2024-07-18 15:47:14 +00:00
int_xero__credit_notes.sql Merged PR 4568: Adds flag to identify invoices/credit notes that are posted in Hyperline 2025-03-04 10:12:03 +00:00
int_xero__invoice_line_items.sql Merged PR 2349: Retrieve account for xero invoices, credit notes and sales denom mart 2024-07-18 15:47:14 +00:00
int_xero__invoices.sql Merged PR 4568: Adds flag to identify invoices/credit notes that are posted in Hyperline 2025-03-04 10:12:03 +00:00
int_xero__sales_denom_mart.sql Merged PR 4572: Applies logic to modify the invoicing cycle date depending on the issuing source 2025-03-04 11:32:52 +00:00
int_xero__sales_monthly_trends.sql Merged PR 4228: First version of sales - monthly trends 2025-01-31 08:33:15 +00:00
schema.yml Merged PR 4572: Applies logic to modify the invoicing cycle date depending on the issuing source 2025-03-04 11:32:52 +00:00