{% load static %} 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: {{ currency_symbol }}{{ 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 }} {{ currency_symbol }}{{ item.total_price }}
Subtotal: {{ currency_symbol }}{{ order.total_amount }}
Tax: {{ currency_symbol }}{{ order.tax_amount }}
Total: {{ currency_symbol }}{{ order.final_amount }}
Payment: {{ order.get_payment_method_display }}
{% if order.amount_paid %}
Amount Paid: {{ currency_symbol }}{{ order.amount_paid }}
{% endif %} {% if order.balance_amount %}
Balance: {{ currency_symbol }}{{ order.balance_amount }}
{% endif %}
{% if qr_code %}
QR Code
{% endif %}