more contact tests
This commit is contained in:
parent
8f14f5d37d
commit
e1a4faf3b9
1 changed files with 14 additions and 0 deletions
|
|
@ -320,6 +320,11 @@ models:
|
|||
- name: invoice_currency_iso_4217
|
||||
data_type: character varying
|
||||
description: The ISO 4217 code for the currency which this invoice uses as unit of account.
|
||||
tests:
|
||||
- not_null
|
||||
- length_between:
|
||||
min_length: 3
|
||||
max_length: 3
|
||||
|
||||
- name: exchange_rate_to_gbp
|
||||
data_type: numeric
|
||||
|
|
@ -331,6 +336,9 @@ models:
|
|||
|
||||
For example, if the invoice is 135 ZAR, and this rate is 0.0167, the invoice value in GBP is 2.25
|
||||
(135ZAR * 0.0167GBP/ZAR = 2.25GBP).
|
||||
tests:
|
||||
- not_null
|
||||
- not_negative
|
||||
|
||||
- name: is_discounted
|
||||
data_type: boolean
|
||||
|
|
@ -390,6 +398,12 @@ models:
|
|||
Indicates whether the amounts included in line items are tax
|
||||
inclusive (Inclusive), tax exclusive (Exclusive) or simply,
|
||||
there are no taxes on the invoice (NoTax).
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
- Inclusive
|
||||
- Exclusive
|
||||
- NoTax
|
||||
|
||||
- name: payment_planned_date_utc
|
||||
data_type: timestamp with time zone
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue