Sale Details
| Invoice Number: |
{{ sale.invoice_number }} |
| Date: |
{{ sale.created_at|date:"F d, Y - H:i" }} |
| Status: |
{{ sale.payment_status|title }}
|
| Cashier: |
{{ sale.cashier.get_full_name }} |
| Branch: |
{{ sale.branch.name }} |
Customer Information
{% if sale.customer %}
| Name: |
{{ sale.customer.full_name }} |
| Email: |
{{ sale.customer.email|default:"-" }} |
| Phone: |
{{ sale.customer.phone|default:"-" }} |
| Address: |
{{ sale.customer.address|default:"-" }} |
|
View Customer
|
{% else %}
Walk-in customer (no details provided)
{% endif %}
Items Purchased
| # |
Product |
Price |
Quantity |
Discount |
Total |
{% for item in items %}
| {{ forloop.counter }} |
{% if item.product %}
{{ item.product.name }}
SKU: {{ item.product.sku }}
{% else %}
{{ item.product_name }} (deleted)
{% endif %}
|
{{ company_settings.currency_symbol }} {{ item.price|floatformat:2 }} |
{{ item.quantity }} |
{% if item.discount > 0 %}
{{ item.discount|floatformat:2 }}%
{% else %}
-
{% endif %}
|
{{ company_settings.currency_symbol }} {{ item.total|floatformat:2 }} |
{% endfor %}
| Subtotal: |
{{ company_settings.currency_symbol }} {{ sale.subtotal|floatformat:2 }} |
{% if sale.tax_amount > 0 %}
| Tax ({{ sale.tax_rate }}%): |
{{ company_settings.currency_symbol }} {{ sale.tax_amount|floatformat:2 }} |
{% endif %}
{% if sale.discount_amount > 0 %}
| Discount: |
-{{ company_settings.currency_symbol }} {{ sale.discount_amount|floatformat:2 }} |
{% endif %}
| Total: |
{{ company_settings.currency_symbol }} {{ sale.total_amount|floatformat:2 }} |
Payment Information
{% if payments %}
| # |
Date |
Method |
Reference |
Amount |
{% for payment in payments %}
| {{ forloop.counter }} |
{{ payment.payment_date|date:"F d, Y - H:i" }} |
{{ payment.payment_method|title }} |
{{ payment.reference_number|default:"-" }} |
{{ company_settings.currency_symbol }} {{ payment.amount|floatformat:2 }} |
{% endfor %}
| Total Paid: |
{{ company_settings.currency_symbol }} {{ sale.amount_paid|floatformat:2 }} |
{% if sale.payment_status != 'paid' and sale.payment_status != 'cancelled' %}
| Balance Due: |
{{ company_settings.currency_symbol }} {{ sale.balance_due|floatformat:2 }} |
{% endif %}
{% else %}
No payments have been recorded for this sale.
{% endif %}
{% if sale.notes %}
Notes
{{ sale.notes|linebreaks }}
{% endif %}