Merged PR 4568: Adds flag to identify invoices/credit notes that are posted in Hyperline

# Description

Adds flag to identify invoices/credit notes that are posted in Hyperline.
For Invoices, these need to be ACCREC and follow a convention of 20XX-Y
For Credit Notes, these need to be ACCRECCREDIT and follow a convention of CN-20XX-Y

# 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: #28146
This commit is contained in:
Oriol Roqué Paniagua 2025-03-04 10:12:03 +00:00
parent 2a0172edd5
commit dcf0f205a2
8 changed files with 86 additions and 0 deletions

View file

@ -31,6 +31,7 @@ select
ili.line_description as line_description,
i.id_invoice as id_document,
i.is_invoice_posted_in_hyperline as is_document_posted_in_hyperline,
i.reference as reference,
i.invoice_number as document_number,
i.invoice_issued_at_utc as document_issued_at_utc,
@ -89,6 +90,7 @@ select
cnli.line_description,
cn.id_credit_note,
cn.is_credit_note_posted_in_hyperline as is_document_posted_in_hyperline,
cn.reference,
cn.credit_note_number,
cn.credit_note_issued_at_utc,