Removed null fields

This commit is contained in:
Joaquin Ossa 2024-12-03 11:35:03 +01:00
parent 4d0c45e49d
commit 63b3cae062
5 changed files with 11 additions and 37 deletions

View file

@ -7,13 +7,17 @@ select
av.id_verification,
av.id_booking,
av.id_user_partner,
av.id_accommodation,
null as id_accommodation,
av.version,
av.verification_source,
av.verification_status,
av.nightly_fee_local,
av.number_nights,
av.nightly_fee_local * av.number_nights as total_fee_local,
case
when av.number_nights = 0
then av.nightly_fee_local
else av.nightly_fee_local * av.number_nights
end as total_fee_local,
av.email_flag,
av.phone_flag,
av.watch_list,
@ -30,7 +34,7 @@ select
av.guest_last_name,
av.guest_first_name,
av.guest_telephone,
av.company_name,
null as company_name,
av.property_manager_name,
av.property_manager_email,
av.listing_name,
@ -78,15 +82,15 @@ select
ev.guest_first_name,
ev.guest_telephone,
ev.company_name,
ev.property_manager_name,
ev.property_manager_email,
null as property_manager_name,
null as property_manager_email,
ev.listing_name,
ev.listing_address,
ev.listing_town,
ev.listing_country,
ev.listing_postcode,
ev.level_of_protection_amount,
ev.level_of_protection_currency,
null as level_of_protection_amount,
null as level_of_protection_currency,
ev.pets_allowed,
ev.status_updated_at_utc,
ev.status_updated_date_utc,