New fields for Invoicing & Crediting
This commit is contained in:
parent
84e8100706
commit
80651ce60e
4 changed files with 121 additions and 10 deletions
|
|
@ -564,6 +564,12 @@ models:
|
|||
specifically focusing on the amounts owed by Truvi or to Truvi.
|
||||
This includes all AUTHORISED invoices and credit notes.
|
||||
|
||||
data_tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- id_contact
|
||||
- currency
|
||||
|
||||
columns:
|
||||
|
||||
- name: id_contact
|
||||
|
|
@ -572,7 +578,6 @@ models:
|
|||
Unique identifier of a contact.
|
||||
data_tests:
|
||||
- not_null
|
||||
- unique
|
||||
|
||||
- name: id_deal
|
||||
data_type: character varying
|
||||
|
|
@ -580,17 +585,52 @@ models:
|
|||
Identifier of the account.
|
||||
data_tests:
|
||||
- not_null
|
||||
- unique
|
||||
|
||||
- name: contact_name
|
||||
data_type: character varying
|
||||
description: "Name of the contact associated with the deal."
|
||||
|
||||
- name: currency
|
||||
data_type: character varying
|
||||
description: "The currency of the transaction, represented in ISO 4217 format."
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: total_due_invoice_amount_local_curr
|
||||
data_type: numeric
|
||||
description: |
|
||||
Total outstanding amount in the local currency, which is the sum of all AUTHORISED
|
||||
invoices for the deal.
|
||||
|
||||
- name: total_due_invoice_amount_in_gbp
|
||||
data_type: numeric
|
||||
description: |
|
||||
Total outstanding amount in GBP, which is the sum of all AUTHORISED invoices
|
||||
for the deal, converted to GBP.
|
||||
|
||||
- name: total_due_credit_note_amount_local_curr
|
||||
data_type: numeric
|
||||
description: |
|
||||
Total outstanding amount in the local currency, which is the sum of all AUTHORISED
|
||||
credit notes for the deal.
|
||||
|
||||
- name: total_due_credit_note_amount_in_gbp
|
||||
data_type: numeric
|
||||
description: |
|
||||
Total outstanding amount in GBP, which is the sum of all AUTHORISED credit notes
|
||||
for the deal, converted to GBP.
|
||||
|
||||
- name: total_due_amount_local_curr
|
||||
data_type: numeric
|
||||
description: |
|
||||
Total outstanding amount in the local currency, which is the sum of all AUTHORISED
|
||||
invoices and credit notes for the deal.
|
||||
|
||||
- name: total_due_amount_in_gbp
|
||||
data_type: numeric
|
||||
description: |
|
||||
Total outstanding amount in GBP, which is the sum of all AUTHORISED invoices and credit notes
|
||||
for the deal, converted to GBP.
|
||||
Total outstanding amount in GBP, which is the sum of all AUTHORISED invoices
|
||||
and credit notes for the deal, converted to GBP.
|
||||
|
||||
- name: outstanding_type
|
||||
data_type: character varying
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue