{% set can_cancel_booking = d2_get_booking_ok_cancel(booking.id) %}
{% if booking.checkoutDate|date('Y-m-d') < "now"|date("Y-m-d") %}
Your last reservation was:
{% elseif (booking.arrivalDate|date('Y-m-d') <= "now"|date("Y-m-d")) and (booking.checkoutDate|date('Y-m-d') >= "now"|date("Y-m-d")) %}
Your current reservation is:
{% else %}
Your up and coming reservation is:
{% endif %}
{{ booking }}
{% if all_bookings|length > 0 %}
VIEW RESERVATIONS
{% endif %}
NEW RESERVATION
Arrival Date | {{ booking.arrivalDate|date('Y-m-d') }} |
Departure Date | {{ booking.checkoutDate|date('Y-m-d') }} |
Nights | {{ d2_get_accomodation_duration(booking) }} |
Adults | {{ booking.adultOccupants }} |
Children | {{ booking.childrenOccupants }} |
Status | {{ status_opts[booking.bookingStatus] }} | |
{% if can_cancel_booking %}
CANCEL RESERVATION
{% endif %}
{% set can_cancel_booking = d2_get_booking_ok_cancel(booking.id) %}
{% if booking.checkoutDate|date('Y-m-d') < "now"|date("Y-m-d") %}
Your last reservation was:
{% elseif (booking.arrivalDate|date('Y-m-d') <= "now"|date("Y-m-d")) and (booking.checkoutDate|date('Y-m-d') >= "now"|date("Y-m-d")) %}
Your current reservation is:
{% else %}
Your up and coming reservation is:
{% endif %}
{{ booking }}
{% if all_bookings|length > 0 %}
VIEW RESERVATIONS
{% endif %}
NEW RESERVATION
Arrival Date | {{ booking.arrivalDate|date('Y-m-d') }} |
Departure Date | {{ booking.checkoutDate|date('Y-m-d') }} |
Nights | {{ d2_get_accomodation_duration(booking) }} |
Adults | {{ booking.adultOccupants }} |
Children | {{ booking.childrenOccupants }} |
Status | {{ status_opts[booking.bookingStatus] }} | {% if can_cancel_booking %}CANCEL{% endif %} |
{% if services|length > 0 %}
{% for service in services %}
{% if service_arr[service.id]|length > 0 %}
{% for activity in service_arr[service.id] %}
{% set can_cancel_activity = d2_get_activity_ok_cancel(activity.id) %}
{{ service.activityName }}: {{ activity.startDate|date('Y-m-d') }}
activity.startDate|date('Y-m-d') %} style="background-color:#F5F5F5" {% endif %}>
Time | {{ activity.startDate|date('H:i') }} to {{ activity.endDate|date('H:i') }} |
Pax | {{ activity.quantity }} |
Status | {% if activity.confirmed %}Confirmed{% else %}Provisional{% endif %} | {% if can_cancel_activity %}CANCEL{% endif %} |
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% if invoices|length > 0 %}
Reservation: {{ booking }}
{% for invoice in invoices %}
{% endfor %}
INVOICES |
Date | Document | Status | Total (incl) |
---|
{{ invoice.date|date('Y-m-d') }} |
{{ invoice.docNo }} |
{{ invoice.status|upper }} |
{{ invoice.total|number_format(2, '.', '') }} |
{% endif %}
{% if pos_sessions|length > 0 %}
{% for session in pos_sessions %}
{% for item in session.cartItems %}
{% set item_totals = d2_get_pos_item_total(item) %}
{% endfor %}
{% endfor %}
POINT OF SALE |
Date | Item | Qty | Total (incl) |
---|
{{ session.date|date('Y-m-d') }} {% if session.invoice is not null %}[Invoiced: {{ session.invoice.docNo }}]{% else %} OUTSTANDING{% endif %} |
|
{{ item.stockItem.description }} |
{{ item.quantity }} |
{{ item_totals['total']|number_format(2, '.', '') }} |
{% endif %}