changed name

This commit is contained in:
Joaquin Ossa 2025-02-26 16:45:01 +01:00
parent 0fd8c21e38
commit aaa0b1a5dd
6 changed files with 42 additions and 42 deletions

View file

@ -192,12 +192,12 @@ select
(i.calculated_payout_amount_in_usd * cer.rate)::decimal( (i.calculated_payout_amount_in_usd * cer.rate)::decimal(
19, 4 19, 4
) as calculated_payout_amount_in_gbp, ) as calculated_payout_amount_in_gbp,
i.calculated_guest_charge_amount_in_txn_currency, i.submitted_guest_charge_amount_in_txn_currency,
i.calculated_guest_charge_currency, i.submitted_guest_charge_currency,
i.calculated_guest_charge_amount_in_usd, i.submitted_guest_charge_amount_in_usd,
(i.calculated_guest_charge_amount_in_usd * cer.rate)::decimal( (i.submitted_guest_charge_amount_in_usd * cer.rate)::decimal(
19, 4 19, 4
) as calculated_guest_charge_amount_in_gbp, ) as submitted_guest_charge_amount_in_gbp,
-- Host Details -- Host Details
i.id_user_host, i.id_user_host,

View file

@ -211,32 +211,32 @@ models:
min_value: 0 min_value: 0
strictly: false strictly: false
- name: calculated_guest_charge_amount_in_txn_currency - name: submitted_guest_charge_amount_in_txn_currency
data_type: text data_type: numeric
description: "Calculated guest charge amount in local currency." description: "Submitted guest charge amount in local currency."
data_tests: data_tests:
- dbt_expectations.expect_column_values_to_be_between: - dbt_expectations.expect_column_values_to_be_between:
min_value: 0 min_value: 0
strictly: false strictly: false
- name: calculated_guest_charge_currency - name: submitted_guest_charge_currency
data_type: text data_type: text
description: "Currency of the calculated guest charge amount." description: "Currency of the submitted guest charge amount."
data_tests: data_tests:
- not_null: - not_null:
where: "calculated_guest_charge_amount_in_txn_currency > 0" where: "submitted_guest_charge_amount_in_txn_currency > 0"
- name: calculated_guest_charge_amount_in_usd - name: submitted_guest_charge_amount_in_usd
data_type: text data_type: numeric
description: "Calculated guest charge amount in USD." description: "Submitted guest charge amount in USD."
data_tests: data_tests:
- dbt_expectations.expect_column_values_to_be_between: - dbt_expectations.expect_column_values_to_be_between:
min_value: 0 min_value: 0
strictly: false strictly: false
- name: calculated_guest_charge_amount_in_gbp - name: submitted_guest_charge_amount_in_gbp
data_type: text data_type: text
description: "Calculated guest charge amount in GBP." description: "Submitted guest charge amount in GBP."
data_tests: data_tests:
- dbt_expectations.expect_column_values_to_be_between: - dbt_expectations.expect_column_values_to_be_between:
min_value: 0 min_value: 0

View file

@ -39,11 +39,11 @@ select
calculated_payout_currency as calculated_payout_currency, calculated_payout_currency as calculated_payout_currency,
calculated_payout_amount_in_usd as calculated_payout_amount_in_usd, calculated_payout_amount_in_usd as calculated_payout_amount_in_usd,
calculated_payout_amount_in_gbp as calculated_payout_amount_in_gbp, calculated_payout_amount_in_gbp as calculated_payout_amount_in_gbp,
calculated_guest_charge_amount_in_txn_currency submitted_guest_charge_amount_in_txn_currency
as calculated_guest_charge_amount_in_txn_currency, as submitted_guest_charge_amount_in_txn_currency,
calculated_guest_charge_currency as calculated_guest_charge_currency, submitted_guest_charge_currency as submitted_guest_charge_currency,
calculated_guest_charge_amount_in_usd as calculated_guest_charge_amount_in_usd, submitted_guest_charge_amount_in_usd as submitted_guest_charge_amount_in_usd,
calculated_guest_charge_amount_in_gbp as calculated_guest_charge_amount_in_gbp, submitted_guest_charge_amount_in_gbp as submitted_guest_charge_amount_in_gbp,
id_user_host as id_user_host, id_user_host as id_user_host,
host_account_name as host_account_name, host_account_name as host_account_name,
host_email as host_email, host_email as host_email,

View file

@ -211,32 +211,32 @@ models:
min_value: 0 min_value: 0
strictly: false strictly: false
- name: calculated_guest_charge_amount_in_txn_currency - name: submitted_guest_charge_amount_in_txn_currency
data_type: text data_type: numeric
description: "Calculated guest charge amount in local currency." description: "Submitted guest charge amount in local currency."
data_tests: data_tests:
- dbt_expectations.expect_column_values_to_be_between: - dbt_expectations.expect_column_values_to_be_between:
min_value: 0 min_value: 0
strictly: false strictly: false
- name: calculated_guest_charge_currency - name: submitted_guest_charge_currency
data_type: text data_type: text
description: "Currency of the calculated guest charge amount." description: "Currency of the submitted guest charge amount."
data_tests: data_tests:
- not_null: - not_null:
where: "calculated_guest_charge_amount_in_txn_currency > 0" where: "submitted_guest_charge_amount_in_txn_currency > 0"
- name: calculated_guest_charge_amount_in_usd - name: submitted_guest_charge_amount_in_usd
data_type: text data_type: numeric
description: "Calculated guest charge amount in USD." description: "Submitted guest charge amount in USD."
data_tests: data_tests:
- dbt_expectations.expect_column_values_to_be_between: - dbt_expectations.expect_column_values_to_be_between:
min_value: 0 min_value: 0
strictly: false strictly: false
- name: calculated_guest_charge_amount_in_gbp - name: submitted_guest_charge_amount_in_gbp
data_type: text data_type: text
description: "Calculated guest charge amount in GBP." description: "Submitted guest charge amount in GBP."
data_tests: data_tests:
- dbt_expectations.expect_column_values_to_be_between: - dbt_expectations.expect_column_values_to_be_between:
min_value: 0 min_value: 0

View file

@ -365,24 +365,24 @@ models:
min_value: 0 min_value: 0
strictly: false strictly: false
- name: calculated_guest_charge_amount_in_txn_currency - name: submitted_guest_charge_amount_in_txn_currency
data_type: numeric data_type: numeric
description: "Calculated guest charge amount in local currency." description: "Submitted guest charge amount in local currency."
data_tests: data_tests:
- dbt_expectations.expect_column_values_to_be_between: - dbt_expectations.expect_column_values_to_be_between:
min_value: 0 min_value: 0
strictly: false strictly: false
- name: calculated_guest_charge_currency - name: submitted_guest_charge_currency
data_type: text data_type: text
description: "Currency of the calculated guest charge amount." description: "Currency of the submitted guest charge amount."
data_tests: data_tests:
- not_null: - not_null:
where: "calculated_guest_charge_amount_in_txn_currency > 0" where: "submitted_guest_charge_amount_in_txn_currency > 0"
- name: calculated_guest_charge_amount_in_usd - name: submitted_guest_charge_amount_in_usd
data_type: numeric data_type: numeric
description: "Calculated guest charge amount in USD." description: "Submitted guest charge amount in USD."
data_tests: data_tests:
- dbt_expectations.expect_column_values_to_be_between: - dbt_expectations.expect_column_values_to_be_between:
min_value: 0 min_value: 0

View file

@ -233,15 +233,15 @@ select
{{ adapter.quote("documents") }} {{ adapter.quote("documents") }}
-> 'SavedCalculation' -> 'SavedCalculation'
->> 'SubmittedGuestChargeAmount' ->> 'SubmittedGuestChargeAmount'
)::numeric as calculated_guest_charge_amount_in_txn_currency, )::numeric as submitted_guest_charge_amount_in_txn_currency,
{{ adapter.quote("documents") }} {{ adapter.quote("documents") }}
-> 'SavedCalculation' -> 'SavedCalculation'
->> 'SubmittedGuestChargeCurrency' as calculated_guest_charge_currency, ->> 'SubmittedGuestChargeCurrency' as submitted_guest_charge_currency,
( (
{{ adapter.quote("documents") }} {{ adapter.quote("documents") }}
-> 'SavedCalculation' -> 'SavedCalculation'
->> 'SubmittedGuestChargeAmountInUsd' ->> 'SubmittedGuestChargeAmountInUsd'
)::numeric as calculated_guest_charge_amount_in_usd, )::numeric as submitted_guest_charge_amount_in_usd,
-- Third Party Compensation Claim -- Third Party Compensation Claim
( (