{% extends 'base/base.html' %} {% load static humanize %} {% block title %}Booking #{{ booking.booking_number }} - PRACA{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Booking #{{ booking.booking_number }}

{{ booking.get_status_display }} Booked on {{ booking.created_at|date:"F j, Y" }} {{ booking.get_booking_type_display }}

Booking Status

{% for log in booking.bookingstatuslog_set.all %}

{{ log.get_status_display }}

{{ log.timestamp|date:"F j, Y \a\t g:i A" }}

{% if log.notes %}

{{ log.notes }}

{% endif %}
{% endfor %}

Booking Items

{% for item in booking.bookingitem_set.all %}
{% if item.equipment and item.equipment.image %} {{ item.equipment.name }} {% elif item.service and item.service.image %} {{ item.service.name }} {% else %}
{% endif %}
{% if item.equipment %} {{ item.equipment.name }} {% elif item.service %} {{ item.service.name }} {% endif %}

{% if item.equipment %} {{ item.equipment.category }} {% if item.equipment.brand %} {{ item.equipment.brand }} {% endif %} {% elif item.service %} {{ item.service.category }} {% endif %}

{% if item.notes %}

{{ item.notes|truncatechars:60 }}

{% endif %}
Unit Price: KSh {{ item.unit_price|floatformat:2|intcomma }}
Qty: {{ item.quantity }}
{% if item.daily_rate and item.total_days %}
Days: {{ item.total_days }} @ KSh {{ item.daily_rate|floatformat:2|intcomma }}/day
{% endif %}
Subtotal: KSh {{ item.subtotal|floatformat:2|intcomma }}
{% endfor %} {% if booking.booking_type == 'equipment' %}
Rental Period

Start: {{ booking.start_date|date:"F j, Y" }} at {{ booking.pickup_time|time:"g:i A" }}

End: {{ booking.end_date|date:"F j, Y" }} at {{ booking.return_time|time:"g:i A" }}

({{ booking.total_days }} day{{ booking.total_days|pluralize }} total)

{% if booking.delivery_required %}
Delivery Information

Address: {{ booking.delivery_address }}

{% if booking.delivery_fee > 0 %}

Delivery Fee: KSh {{ booking.delivery_fee|floatformat:2|intcomma }}

{% endif %}
{% endif %}
{% endif %}
Order Summary
Subtotal ({{ booking.bookingitem_set.count }} item{{ booking.bookingitem_set.count|pluralize }}): KSh {{ booking.subtotal|floatformat:2|intcomma }}
{% if booking.delivery_fee > 0 %}
Delivery Fee: KSh {{ booking.delivery_fee|floatformat:2|intcomma }}
{% endif %} {% if booking.tax_amount > 0 %}
Tax ({{ booking.tax_rate }}%): KSh {{ booking.tax_amount|floatformat:2|intcomma }}
{% endif %}
Total Amount: KSh {{ booking.total_amount|floatformat:2|intcomma }}
{% if booking.security_deposit > 0 %}
Security Deposit: KSh {{ booking.security_deposit|floatformat:2|intcomma }}
{% endif %}

Equipment Details

{% if booking.equipment.image %} {{ booking.equipment.name }} {% else %}
{% endif %}

{{ booking.equipment.name }}

{{ booking.equipment.category }}

Daily Rate: KSh {{ booking.daily_rate|floatformat:2 }}
Security Deposit: KSh {{ booking.security_deposit|floatformat:2 }}
{% if booking.delivery_required %}
Delivery included to: {{ booking.delivery_address }}
{% endif %}

Rental Period

Pickup

{{ booking.start_date|date:"l, F j, Y" }}

{% if booking.pickup_time %}

{{ booking.pickup_time|time:"g:i A" }}

{% endif %}

Return

{{ booking.end_date|date:"l, F j, Y" }}

{% if booking.return_time %}

{{ booking.return_time|time:"g:i A" }}

{% endif %}
{{ booking.total_days }} day{{ booking.total_days|pluralize }}
{% if booking.special_requests %}

Special Requests

{{ booking.special_requests }}

{% endif %}

Customer Information

Name

{{ booking.user.get_full_name|default:"N/A" }}

Email

{{ booking.customer_email }}

Phone

{{ booking.customer_phone|default:"N/A" }}

{% if booking.user.profile.company %}

Company

{{ booking.user.profile.company }}

{% endif %}

Booking Summary

Daily Rate ({{ booking.total_days }} days): KSh {{ booking.subtotal|floatformat:2 }}
{% if booking.delivery_required %}
Delivery Fee: KSh {{ booking.delivery_fee|floatformat:2 }}
{% endif %}
Security Deposit: KSh {{ booking.security_deposit|floatformat:2 }}

Total Amount: KSh {{ booking.total_amount|floatformat:2 }}

Need Help?

If you have any questions about your booking, please contact our support team.

Email Support Call Us {% if booking.status == 'pending' %} {% endif %}
{% if booking.status == 'pending' %} {% endif %} {% endblock %} {% block extra_css %} {% endblock %}