Merged PR 3723: Added total fee cost of booking

# Description

Added total fee cost of booking

# Checklist

- [x] The edited models and dependants run properly with production data.
- [x] The edited models are sufficiently documented.
- [x] The edited models contain PK tests, and I've ran and passed them.
- [ ] I have checked for DRY opportunities with other models and docs.
- [ ] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

Added total fee cost of booking

Related work items: #24825
This commit is contained in:
Joaquin Ossa 2024-12-02 10:53:59 +00:00
commit 6d2ca174f8
4 changed files with 11 additions and 0 deletions

View file

@ -13,6 +13,7 @@ select
av.verification_status,
av.nightly_fee_local,
av.number_nights,
av.nightly_fee_local * av.number_nights as total_fee_local,
av.email_flag,
av.phone_flag,
av.watch_list,
@ -55,6 +56,7 @@ select
ev.verification_source,
ev.verification_status,
ev.nightly_fee_local,
ev.nightly_fee_local * ev.number_nights as total_fee_local,
ev.number_nights,
ev.email_flag,
ev.phone_flag,

View file

@ -1246,6 +1246,10 @@ models:
data_type: integer
description: "number of nights for the booking"
- name: total_fee_local
data_type: double precision
description: "total fee for the booking"
- name: email_flag
data_type: text
description: "screening result for email"

View file

@ -12,6 +12,7 @@ select
eav.verification_status as verification_status,
eav.nightly_fee_local as nightly_fee_local,
eav.number_nights as number_nights,
eav.total_fee_local as total_fee_local,
eav.email_flag as email_flag,
eav.phone_flag as phone_flag,
eav.watch_list as watch_list,

View file

@ -63,6 +63,10 @@ models:
data_type: integer
description: "number of nights for the booking"
- name: total_fee_local
data_type: double precision
description: "total fee for the booking"
- name: email_flag
data_type: text
description: "screening result for email"