boy scout: tests for invoices
This commit is contained in:
parent
34b678df26
commit
7aa667f7cf
1 changed files with 45 additions and 12 deletions
|
|
@ -189,15 +189,18 @@ models:
|
||||||
description: ""
|
description: ""
|
||||||
- name: stg_xero__invoices
|
- name: stg_xero__invoices
|
||||||
description: |
|
description: |
|
||||||
Invoices that we have raised within our accounting books.
|
Invoices that we have raised within our accounting books.
|
||||||
|
|
||||||
This includes both our invoices towards customers and invoices provided by our suppliers.
|
This includes both our invoices towards customers and invoices provided by our suppliers.
|
||||||
|
|
||||||
You can read more here: https://developer.xero.com/documentation/api/accounting/invoices
|
You can read more here: https://developer.xero.com/documentation/api/accounting/invoices
|
||||||
columns:
|
columns:
|
||||||
- name: id_invoice
|
- name: id_invoice
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
description: Xero's unique identifier for the invoice.
|
description: Xero's unique identifier for the invoice.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- unique
|
||||||
|
|
||||||
- name: invoice_url
|
- name: invoice_url
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
|
|
@ -212,42 +215,70 @@ models:
|
||||||
description: |
|
description: |
|
||||||
This field indicates whether the invoice is from Superhog towards a customer
|
This field indicates whether the invoice is from Superhog towards a customer
|
||||||
(value is "ACCREC") or from a supplier towards Superhog (value is "ACCPAY").
|
(value is "ACCREC") or from a supplier towards Superhog (value is "ACCPAY").
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- accepted_values:
|
||||||
|
values:
|
||||||
|
- "ACCREC"
|
||||||
|
- "ACCPAY"
|
||||||
|
|
||||||
- name: total_amount_local_curr
|
- name: total_amount_local_curr
|
||||||
data_type: numeric
|
data_type: numeric
|
||||||
description: The total amount to be paid, in the currency the invoice is denominated in.
|
description: The total amount to be paid, in the currency the invoice is denominated in.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: total_amount_wo_tax_local_curr
|
- name: total_amount_wo_tax_local_curr
|
||||||
data_type: numeric
|
data_type: numeric
|
||||||
description: The total amount to be paid minus taxes, in the currency the invoice is denominated in.
|
description: The total amount to be paid minus taxes, in the currency the invoice is denominated in.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: total_tax_local_curr
|
- name: total_tax_local_curr
|
||||||
data_type: numeric
|
data_type: numeric
|
||||||
description: The total tax, in the currency the invoice is denominated in.
|
description: The total tax, in the currency the invoice is denominated in.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: total_due_local_curr
|
- name: total_due_local_curr
|
||||||
data_type: numeric
|
data_type: numeric
|
||||||
description: The total amount outstanding right now, in the currency the invoice is denominated in.
|
description: The total amount outstanding right now, in the currency the invoice is denominated in.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: total_paid_local_curr
|
- name: total_paid_local_curr
|
||||||
data_type: numeric
|
data_type: numeric
|
||||||
description: The total amount that has already been paid, in the currency the invoice is denominated in.
|
description: The total amount that has already been paid, in the currency the invoice is denominated in.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: invoice_status
|
- name: invoice_status
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
description: |
|
description: |
|
||||||
The status of the invoice.
|
The status of the invoice.
|
||||||
|
|
||||||
Can be one of: PAID, VOIDED, DRAFT, DELETED, AUTHORISED, SUBMITTED.
|
Can be one of: PAID, VOIDED, DRAFT, DELETED, AUTHORISED, SUBMITTED.
|
||||||
|
|
||||||
You can read more here: https://developer.xero.com/documentation/api/accounting/types#invoices
|
You can read more here: https://developer.xero.com/documentation/api/accounting/types#invoices
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- accepted_values:
|
||||||
|
values:
|
||||||
|
- PAID
|
||||||
|
- VOIDED
|
||||||
|
- DRAFT
|
||||||
|
- DELETED
|
||||||
|
- AUTHORISED
|
||||||
|
- SUBMITTED
|
||||||
|
|
||||||
- name: contact
|
- name: full_contact_details
|
||||||
data_type: jsonb
|
data_type: jsonb
|
||||||
description: |
|
description: |
|
||||||
The contact related to this invoice.
|
The contact related to this invoice.
|
||||||
|
|
||||||
The customer if it's an Accounts Receivables one, the supplier if it's an Accounts Payables one.
|
The customer if it's an Accounts Receivables one, the supplier if it's an Accounts Payables one.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: invoice_due_date_utc
|
- name: invoice_due_date_utc
|
||||||
data_type: timestamp with time zone
|
data_type: timestamp with time zone
|
||||||
|
|
@ -265,6 +296,8 @@ models:
|
||||||
- name: line_items
|
- name: line_items
|
||||||
data_type: jsonb
|
data_type: jsonb
|
||||||
description: An array with all the line items and their details.
|
description: An array with all the line items and their details.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- name: reference
|
- name: reference
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue