{% load static currency_filters %} Receipt - {{ order.order_number }}

{{ system_settings.business_name|default:"SWIFTPOS" }}

{% if system_settings.business_address %}

{{ system_settings.business_address }}

{% endif %} {% if system_settings.business_phone %}

{{ system_settings.business_phone }}

{% endif %}
Order No: {{ order.order_number }}
Date: {{ order.created_at|date:"Y-m-d H:i" }}
{# NEW: Payment Status #} {% if order.payment_status %}
Payment Status: {{ order.get_payment_status_display|default:"-" }}
{% endif %} {% if order.cashier %}
Cashier: {{ order.cashier }}
{% endif %} {% if order.customer_name %}
Customer: {{ order.customer_name }} {% if order.customer_id %} View Profile {% endif %}
{% if order.balance_amount > 0 %}
Balance Owed: {% money order.balance_amount %}
{% endif %} {% endif %} {% if order.customer_phone %}
Phone: {{ order.customer_phone }}
{% endif %}
Items
{% for item in order_items %} {% endfor %}
Item Qty Total
{{ item.product.name }} {{ item.quantity }} {% money item.total_price %}
Subtotal: {% money order.total_amount %}
{% if order.discount_amount and order.discount_amount > 0 %}
Discount{% if order.promo_code %} ({{ order.promo_code }}){% endif %}: −{% money order.discount_amount %}
{% endif %} {% if order.tax_amount and order.tax_amount > 0 %}
VAT{% if system_settings.vat_rate %} ({{ system_settings.vat_rate }}%){% endif %}: {% money order.tax_amount %}
{% endif %}
Total: {% money order.final_amount %}
{% if order.is_split_payment and split_payments %}
Payment: Split
{% for txn in split_payments %}
└ {{ txn.get_payment_method_display }} {% money txn.amount %}
{% endfor %} {% else %}
Payment: {{ order.get_payment_method_display }}
{% if order.amount_paid %}
Amount Paid: {% money order.amount_paid %}
{% endif %} {% if order.balance_amount %}
Balance: {% money order.balance_amount %}
{% endif %} {% endif %}
{% if qr_code %}
QR Code
{% endif %}