waiver is a tax subject service

This commit is contained in:
Pablo Martin 2024-10-28 11:10:19 +01:00
parent 5c1f6f88f2
commit 76ec2c7436

View file

@ -26,11 +26,7 @@ with
vtp.id_verification_to_payment,
coalesce(vat.vat_rate, 0) as vat_rate,
case
when
vpt.verification_payment_type = 'Waiver'
and pamu.id_payaway_plan is null -- superhog takes waiver
then true
when vpt.verification_payment_type in ('Fee', 'CheckInCover')
when vpt.verification_payment_type in ('Fee', 'CheckInCover', 'Waiver')
then true
else false
end as is_service_subject_to_vat,