{# /***************************************************************************** File name: resedit.html.twig Project: Villas3 Copyright 2024 Michael J. Miller, All rights reserved Purpose: page content for reservation editor Requires: reservation - record buffer Revision History: Date Version Details -------- ------ ------------------------------------------------- 4/25/24 3.0a created 9/7/26 4.0b1 Support for overriding payment plan. ******************************************************************************/ #} {# /*********************************************************************************************************/ PRICING /*********************************************************************************************************/ #}
{% if resedit_sections is not defined or resedit_sections['resedit-pricing'] == 'hide' %} {% set icon = 'fa-caret-right' %} {% set display = 'none' %} {% else %} {% set icon = 'fa-caret-down' %} {% set display = '' %} {% endif %}
{% if reservation.currency_code != globals.currency_code %} Pricing - {{ reservation.currency_code|upper|currency_name }} {% else %} Pricing {% endif %}
{% if reservation.is_local %} {% else %}
Price:
{% endif %}
{{ ((reservation.price)/100)|number_format(2) }}
{{ mode }}:
{{ ((reservation.discount_amount)/100)|number_format(2) }}
Cleaning Fee:
{{ ((reservation.fee_cleaning)/100)|number_format(2) }}
Other Fees:
{{ ((reservation.fee_other)/100)|number_format(2) }}
Tax ({{ reservation.tax_rate }}%):
{{ ((reservation.tax)/100)|number_format(2) }}
Lodging Total:
{{ ((reservation.total)/100)|number_format(2) }}
{% if (reservation.collect_deposit|default(1) or reservation.state != 'cancelled') and reservation.source != 'airbnb' %}
Deposit:
{{ ((reservation.deposit)/100)|number_format(2) }}
{% endif %} {% if reservation.collect_deposit|default(1) %}
Grand Total:
{{ ((reservation.total + reservation.deposit)/100)|number_format(2) }}
{% elseif reservation.state != 'cancelled' %}
{{ reservation.source != 'airbnb' and reservation.collect_deposit|default(1) == 0 ? '(deposit pre-authorized at check-in)' }}
{% endif %}
Grand Total:
{% set grand_total = reservation.collect_deposit|default(1) ? reservation.total + reservation.deposit : reservation.total %}
Total Paid{{ reservation.transaction_costs ? ' (includes '~(reservation.transaction_costs/100)|number_format(2)~' fees)' }}:
{{ (reservation.total_paid/-100)|number_format(2) }}
{% if reservation.total_refund %}
Amount Refunded:
{{ (reservation.total_refund/100)|number_format(2) }}
{% endif %} {% if reservation.refund_cash_due %}
Cash Refund Remaining:
{{ (reservation.refund_cash_due/100)|default(0)|number_format(2) }}
{% endif %} {% if reservation.state == 'cancelled' %} {# {% if reservation.refund_amount > 0 %}
Payable Refund:
{{((reservation.refund_amount)/100)|number_format(2)}}
{% endif %} #}
Cancellaton Fee:
{{ (reservation.fee_cancel/100)|number_format(2) }}
Balance:
{{ (reservation.balance_due/100)|number_format(2) }}
{% else %}
Balance Due:
{{ (reservation.balance_due/100)|number_format(2) }}
{% set total_paid = reservation.total_paid - reservation.total_refund %} {% if role == 'webmaster' %}
Plan Inception {{ reservation.plan_inception_date|format_datetime('short','none') }}
{{ (reservation.plan_inception/100)|number_format(2) }}
Plan Prior {{ reservation.plan_prior_date|format_datetime('short','none') }}
{{ (reservation.plan_prior/100)|number_format(2) }}
Plan Checkin
{{ (reservation.plan_checkin/100)|number_format(2) }}
Due Now {{ reservation.due_now_date|format_datetime('short','none') }}
{{ (reservation.due_now/100)|number_format(2) }}
Due Prior {{ reservation.due_prior_date|format_datetime('short','none') }}
{{ (reservation.due_prior/100)|number_format(2) }}
Due Checkin
{{ (reservation.due_checkin/100)|number_format(2) }}
{% endif %}
{% if reservation.due_now > 0 %}
{#
{{ ((reservation.due_now)/100)|number_format(2) }}
#}
{% endif %} {% if reservation.due_prior > 0 %}
{#
{{ ((reservation.due_prior)/100)|number_format(2) }}
#}
{% endif %} {% endif %} {% if reservation.state != 'cancelled' and reservation.due_checkin > 0 %}
Due at Check In:
{{ ((reservation.due_checkin)/100)|number_format(2) }}
{% endif %} {% if reservation.balance_due > 0 and reservation.state != 'cancelled' %}
{% endif %}
Percent:
Amount:
{% if reservation.state != 'cancelled' %} {% if reservation.balance_due > 0 %}
Payment Amount:
{% if reservation.source == 'airbnb' %} {% else %} {% endif %}
{% else %}
Paid in Full
{% endif %} {% else %} {% endif %}
{% if reservation.collect_deposit|default(1) %} {% endif %}