{% extends 'base.html' %} {% block title %}HRMS - Order #{{ order.id }}{% endblock %} {% block styles %} {% endblock %} {% block page_title %} {% endblock %} {% block content %}
Order Details

Created on {{ order.created_at.strftime('%B %d, %Y at %I:%M %p') }}

{% if is_admin and order.order_status not in ['completed', 'cancelled'] %} {% endif %} {{ order.order_status|title }}
{{ restaurant.name }}
{{ restaurant.address }}, {{ restaurant.city }}
{{ restaurant.phone }}

Customer Name

{{ user.full_name }}

Contact Number

{{ user.phone if user.phone else 'N/A' }}

Email

{{ user.email }}

Order Items
{% for item in items %} {% endfor %} {% if order.discount_amount and order.discount_amount > 0 %} {% endif %}
Item Quantity Price Subtotal
{{ item.name }} {{ item.quantity }} ${{ "%.2f"|format(item.price|float) }} ${{ "%.2f"|format(item.subtotal|float) }}
Total Items: {{ total_items }} Subtotal: ${{ "%.2f"|format(order.total_amount|float) }}
Discount: -${{ "%.2f"|format(order.discount_amount|float) }}
Final Subtotal: ${{ "%.2f"|format((order.total_amount - order.discount_amount)|float) }}
Service Fee (5%): ${{ "%.2f"|format(order.service_fee|float) }}
VAT (10%): ${{ "%.2f"|format(order.vat|float) }}
Grand Total: ${{ "%.2f"|format(order.grand_total|float) }}
Order Summary
Subtotal ${{ "%.2f"|format(order.total_amount|float) }}
{% if order.discount_amount and order.discount_amount > 0 %}
Discount -${{ "%.2f"|format(order.discount_amount|float) }}
Final Subtotal ${{ "%.2f"|format((order.total_amount - order.discount_amount)|float) }}
{% endif %}
Service Fee (5%) ${{ "%.2f"|format(order.service_fee|float) }}
VAT (10%) ${{ "%.2f"|format(order.vat|float) }}
Items {{ total_items }}

Grand Total ${{ "%.2f"|format(order.grand_total|float) }}
{% if order.order_status == 'pending' %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}