diff --git a/models/intermediate/resolutions/int_resolutions__incidents.sql b/models/intermediate/resolutions/int_resolutions__incidents.sql index 3f31b6c..336ac12 100644 --- a/models/intermediate/resolutions/int_resolutions__incidents.sql +++ b/models/intermediate/resolutions/int_resolutions__incidents.sql @@ -125,7 +125,7 @@ with int_daily_currency_exchange_rates cer_gbp on dri.created_date_utc = cer_gbp.rate_date_utc and (cm.corrective_measure ->> 'Currency') = cer_gbp.from_currency - and cer.to_currency = 'GBP' + and cer_gbp.to_currency = 'GBP' group by dri.id_incident, dri.host_currency ), guest_amounts_in_gbp as ( diff --git a/models/staging/resolutions/stg_resolutions__incidents.sql b/models/staging/resolutions/stg_resolutions__incidents.sql index 3e2324c..c1f5a07 100644 --- a/models/staging/resolutions/stg_resolutions__incidents.sql +++ b/models/staging/resolutions/stg_resolutions__incidents.sql @@ -240,7 +240,7 @@ select ( {{ adapter.quote("documents") }} -> 'SavedCalculation' - ->> 'CalculatedGuestChargeAmountInUsd' + ->> 'SubmittedGuestChargeAmountInUsd' )::numeric as calculated_guest_charge_amount_in_usd, -- Third Party Compensation Claim