{% extends 'base.html' %} {% block title %}Booking BK{{ booking.pk|stringformat:"04d" }}{% endblock %} {% block page_title %}Booking Detail{% endblock %} {% block content %}
BK{{ booking.pk|stringformat:"04d" }}
{% if booking.booking_status == 'reserved' or booking.booking_status == 'checked_in' %} {% endif %} {% if booking.booking_status == 'reserved' %}
{% csrf_token %}
Cancel {% elif booking.booking_status == 'checked_in' %}
{% csrf_token %}
Cancel {% endif %}
Guest
{{ booking.guest.full_name }} {{ booking.guest.phone }}
Hotel
Room
{{ booking.room.room_number }} — {{ booking.room.get_room_type_display }} (TSh {{ booking.room.price_per_night|floatformat:0 }}/night)
Check-In
{{ booking.check_in_date|date:"l, d M Y" }}
Check-Out
{{ booking.check_out_date|date:"l, d M Y" }}
Nights
{{ booking.number_of_nights }}
Total Amount
TSh {{ booking.total_amount|floatformat:0 }}
{% if booking.notes %}
Notes
{{ booking.notes }}
{% endif %}
Created by
{{ booking.created_by.username|default:'—' }} · {{ booking.created_at|date:"d M Y H:i" }}
Booking Status {% if booking.booking_status == 'reserved' %}Reserved {% elif booking.booking_status == 'checked_in' %}Checked In {% elif booking.booking_status == 'checked_out' %}Checked Out {% else %}Cancelled{% endif %}
Payment Status {% if booking.payment_status == 'paid' %}Paid {% elif booking.payment_status == 'partial' %}Partial {% else %}Pending{% endif %}
Paid
TSh {{ total_paid|floatformat:0 }}
Balance
TSh {{ balance|floatformat:0 }}
{% if booking.booking_status != 'cancelled' %} {% endif %}
Payment Records
{% for pay in payments %} {% empty %} {% endfor %} {% if payments %} {% endif %}
# Date Amount Method Reference Recorded By Notes
PAY{{ pay.pk|stringformat:"04d" }} {{ pay.payment_date|date:"d M Y" }} TSh {{ pay.amount_paid|floatformat:0 }} {% if pay.payment_method == 'cash' %}Cash {% elif pay.payment_method == 'card' %}Card {% else %}Mobile Money{% endif %} {{ pay.transaction_reference|default:'—' }} {{ pay.recorded_by.username|default:'—' }} {{ pay.notes|default:'—' }}
{% csrf_token %}
No payments recorded yet.
Total Paid TSh {{ total_paid|floatformat:0 }}
{% if booking.booking_status == 'reserved' or booking.booking_status == 'checked_in' %} {% endif %} {% endblock %} {% block scripts %} {% if show_booking_edit_modal %} {% endif %} {% endblock %}