diff --git a/models/intermediate/core/int_core__vr_check_in_cover.sql b/models/intermediate/core/int_core__vr_check_in_cover.sql index 0c216af..8572e42 100644 --- a/models/intermediate/core/int_core__vr_check_in_cover.sql +++ b/models/intermediate/core/int_core__vr_check_in_cover.sql @@ -88,8 +88,10 @@ select p.payment_status, p.payment_paid_date_utc, ccp.checkin_cover_limit_amount_local_curr, - ccp.checkin_cover_limit_amount_local_curr - * (p.amount_in_gbp / p.amount_in_txn_currency) as checkin_cover_limit_amount_in_gbp + ( + ccp.checkin_cover_limit_amount_local_curr + * (p.amount_in_gbp / p.amount_in_txn_currency) + )::numeric(18, 4) as checkin_cover_limit_amount_in_gbp from int_core__verification_requests vr left join int_core__bookings b on vr.id_verification_request = b.id_verification_request left join