add missing condition in where

This commit is contained in:
Pablo Martin 2024-10-30 14:52:21 +01:00
parent 8ddb695947
commit fa97027aa4

View file

@ -58,7 +58,9 @@ with
left join
stg_seed__guest_services_vat_rates_by_country vat
on gu.billing_country_iso_3 = vat.alpha_3
where vpt.verification_payment_type not in ('Waiver', 'CheckInCover', 'Fee')
where
vpt.verification_payment_type not in ('Waiver', 'CheckInCover', 'Fee')
or vpt.verification_payment_type is null
-- Current logic is anything that's not in the list above is not taxed.
),
guest_driven_vat_details as (