{% extends "pos/base.html" %} {% load static %} {% block title %}Pre-Booking Detail{% endblock %} {% block content %}

Pre-Booking Detail - {{ b.prebook_ref_label }}

{% if b.has_official_tid %} Booking Code: BC#{{ b.booking_code }} | {% else %} No T# yet | {% endif %} Source: {{ b.source|default:"-"|title }} | Status: {{ b.status }}

Back Voucher PDF {% if can_edit %} Edit {% endif %} {% if can_pay %} Payment {% endif %} {% if can_checkin %} Check-in {% endif %} {% if can_cancel %} Cancel {% endif %}
{% if not is_active %}
This pre-booking is not active. Editing, payment and check-in actions are disabled.
{% endif %}
Guest & Booking Info
Guest
{% if b.guest %}{{ b.guest.name }}{% else %}-{% endif %}
Contact
{% if b.guest %}{{ b.guest.contact|default:"-" }}{% else %}-{% endif %}
CNIC
{% if b.guest %}{{ b.guest.cnic|default:"-" }}{% else %}-{% endif %}
Status
{{ b.status }}
Check-in
{{ b.checkin_date|date:"d/m/Y" }}
Checkout
{{ b.checkout_date|date:"d/m/Y" }}
Nights
{{ b.nights }}
Pay Mode
{{ b.pay_mode|default:"-" }}
Tax Type
{% if b.tax_exclusive %} Exclusive {% else %} Inclusive {% endif %}
Source
{{ b.source|default:"-"|title }}
Booking Code
{{ b.booking_code|default:"-" }}
Adults
{% if b.guest %}{{ b.guest.no_of_adults|default:"1" }}{% else %}-{% endif %}
Kids
{% if b.guest %}{{ b.guest.no_of_kids|default:"0" }}{% else %}-{% endif %}
Room Categories / Booking Items
{% for it in items %} {% empty %} {% endfor %}
# Category Qty Rate / Night Discount / Night Net / Night Amount
{{ forloop.counter }} {% if it.category %}{{ it.category.name }}{% else %}-{% endif %} {{ it.qty }} {{ it.rate_per_night|floatformat:0 }} {{ it.discount_per_night|floatformat:0 }} {{ it.rate_per_night|floatformat:0 }} {% widthratio it.rate_per_night 1 it.qty %}
No booking items found.
Amount Summary
Pre-Tax Subtotal
{{ b.subtotal|floatformat:2 }}
{% if b.tax_exclusive %} Tax Added {% else %} Included Tax {% endif %}
{{ b.tax_amount|floatformat:2 }}
Total Amount
{{ b.total_amount|floatformat:0 }}
Advance Required
{{ b.advance_required|floatformat:0 }}
Paid
{{ paid_sum|floatformat:0 }}
Advance Balance
{{ advance_balance|floatformat:0 }}
Remaining Total
{{ remaining_amount|floatformat:0 }}
Tax Rate / Type
{{ b.tax_percent|floatformat:2 }}% {% if b.tax_exclusive %} Exclusive {% else %} Inclusive {% endif %}
Payment Ledger
{% for p in ledger %} {% empty %} {% endfor %}
Date Stage Description Bank Category Transaction Amount Action
{{ p.transaction_date|date:"d/m/Y" }} {{ p.stage_label }} {{ p.bill_title_descp|default:"-" }} {{ p.bank_name }} {{ p.category_label }} {{ p.transaction_label }} {{ p.amount_transaction|floatformat:0 }} {% if p.is_prebook_editable and can_pay %} Edit {% else %} - {% endif %}
No payment found.
Total Paid {{ paid_sum|floatformat:0 }}
{% endblock %}