finish columns and schema
This commit is contained in:
parent
63599d7a9b
commit
da3070949a
2 changed files with 96 additions and 6 deletions
|
|
@ -988,15 +988,77 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
|
||||
- name: is_subject_to_vat
|
||||
- name: is_vat_taxed
|
||||
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
|
||||
|
||||
- not_null
|
||||
|
||||
- name: is_missing_user_country
|
||||
data_type: boolean
|
||||
description: |
|
||||
True if, for some reason, the user doesn't have an informed
|
||||
country.
|
||||
|
||||
The only known, justified reason for this is that the user was
|
||||
deleted, along with the billing details.
|
||||
|
||||
If this turns true in any other case, you should really find out
|
||||
why the guest doesn't have a billing country.
|
||||
|
||||
# should be uncommented once this ticket gets solved:
|
||||
#tests:
|
||||
# - not_null
|
||||
# - accepted_values:
|
||||
# values:
|
||||
# - false
|
||||
# where: are_user_details_deleted != true or are_user_details_deleted is not null
|
||||
|
||||
|
||||
|
||||
- name: is_missing_vat_rate_for_country
|
||||
data_type: boolean
|
||||
description: |
|
||||
True if the user country is informed, but no VAT rates were found
|
||||
for it.
|
||||
|
||||
This has to be a joining issue, since our database for VAT rates
|
||||
covers all the countries in the world. We simply assign a 0% rate
|
||||
to countries where we don't collect taxes.
|
||||
|
||||
If this turns true in any other case, you should really find out
|
||||
what's happening.
|
||||
|
||||
# should be uncommented once this ticket gets solved:
|
||||
#tests:
|
||||
# - not_null
|
||||
# - accepted_values:
|
||||
# values:
|
||||
# - false
|
||||
|
||||
- name: are_user_details_deleted
|
||||
data_type: boolean
|
||||
description: |
|
||||
True if the user has been deleted, which is a possible explanation
|
||||
for why there might be no country informed.
|
||||
|
||||
- name: is_missing_vat_details_without_known_cause
|
||||
data_type: boolean
|
||||
description: |
|
||||
True if the VAT rate is missing as a fallback for any
|
||||
other reason beyond the other one specified in the table.
|
||||
|
||||
If this turns true, you have an unhandled problem and you should
|
||||
fix it.
|
||||
|
||||
tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
- false
|
||||
- include: all
|
||||
exclude: [amount_in_txn_currency, amount_in_gbp]
|
||||
- name: int_core__country
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue