add columns
This commit is contained in:
parent
15139e00d0
commit
63599d7a9b
1 changed files with 27 additions and 0 deletions
|
|
@ -970,6 +970,33 @@ models:
|
||||||
total_amount_in_txn_currency.
|
total_amount_in_txn_currency.
|
||||||
tests:
|
tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
- name: vat_rate
|
||||||
|
data_type: numeric
|
||||||
|
description: |
|
||||||
|
The applicable VAT rate to this payment. This is inferred from (1)
|
||||||
|
which service is the payment related to and (2) what's the billing
|
||||||
|
country of the guest.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- is_valid_percentage
|
||||||
|
|
||||||
|
- name: is_service_subject_to_vat
|
||||||
|
data_type: boolean
|
||||||
|
description: |
|
||||||
|
Whether the related payment is subject to VAT. For instance,
|
||||||
|
deposit payments are not.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
|
- name: is_subject_to_vat
|
||||||
|
data_type: boolean
|
||||||
|
description: |
|
||||||
|
Syntactic suger to indicate if there's any VAT on this payment.
|
||||||
|
Will be true if so, false if not for any reason (guest country has
|
||||||
|
no VAT, the payment is for a deposit, etc.)
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
|
||||||
- include: all
|
- include: all
|
||||||
exclude: [amount_in_txn_currency, amount_in_gbp]
|
exclude: [amount_in_txn_currency, amount_in_gbp]
|
||||||
- name: int_core__country
|
- name: int_core__country
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue