Calculator changes
This commit is contained in:
parent
eeb47cf6d8
commit
b20cb44779
6 changed files with 176 additions and 52 deletions
|
|
@ -162,12 +162,6 @@ models:
|
|||
or asked_repair_amount_in_host_currency > 0
|
||||
or accepted_amount_in_host_currency > 0"
|
||||
|
||||
- name: was_overriden
|
||||
data_type: boolean
|
||||
description: |
|
||||
"Flag to indicate if the proposed settlement value from the
|
||||
calculator was overridden."
|
||||
|
||||
- name: guest_verification_status
|
||||
data_type: text
|
||||
description: "Guest verification status for this booking."
|
||||
|
|
@ -203,17 +197,55 @@ models:
|
|||
- not_null:
|
||||
where: "calculated_payout_amount_in_txn_currency > 0"
|
||||
|
||||
- name: calculated_payout_amount_in_usd
|
||||
- name: calculated_payout_amount_in_gbp
|
||||
data_type: numeric
|
||||
description: "Calculated payout amount in USD."
|
||||
description: "Calculated payout amount in GBP."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: calculated_payout_amount_in_gbp
|
||||
- name: submitted_payout_amount_in_txn_currency
|
||||
data_type: numeric
|
||||
description: "Calculated payout amount in GBP."
|
||||
description: "Submitted payout amount in local currency."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: submitted_payout_currency
|
||||
data_type: text
|
||||
description: "Currency of the submitted payout amount."
|
||||
data_tests:
|
||||
- not_null:
|
||||
where: "submitted_payout_amount_in_txn_currency > 0"
|
||||
|
||||
- name: submitted_payout_amount_in_gbp
|
||||
data_type: numeric
|
||||
description: "Submitted payout amount in GBP."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: calculated_guest_charge_amount_in_txn_currency
|
||||
data_type: numeric
|
||||
description: "Calculated guest charge amount in local currency."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: calculated_guest_charge_currency
|
||||
data_type: text
|
||||
description: "Currency of the calculated guest charge amount."
|
||||
data_tests:
|
||||
- not_null:
|
||||
where: "calculated_guest_charge_amount_in_txn_currency > 0"
|
||||
|
||||
- name: calculated_guest_charge_amount_in_gbp
|
||||
data_type: numeric
|
||||
description: "Calculated guest charge amount in GBP."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
|
|
@ -234,14 +266,6 @@ models:
|
|||
- not_null:
|
||||
where: "submitted_guest_charge_amount_in_txn_currency > 0"
|
||||
|
||||
- name: submitted_guest_charge_amount_in_usd
|
||||
data_type: numeric
|
||||
description: "Submitted guest charge amount in USD."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: submitted_guest_charge_amount_in_gbp
|
||||
data_type: numeric
|
||||
description: "Submitted guest charge amount in GBP."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue