{% extends "base.html" %} {% load static %} {% block title %}Receipt - #{{ sale.invoice_number }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% if company_settings.logo %} {% endif %}
{{ company_settings.company_name }}
{{ company_settings.company_address }}
Phone: {{ company_settings.contact_phone }}
Email: {{ company_settings.contact_email }}
--------------------------------------
RECEIPT/INVOICE
#{{ sale.invoice_number }}
{{ sale.created_at|date:"d/m/Y H:i" }}
{% if sale.customer %}
Customer: {{ sale.customer.full_name }}
{% if sale.customer.phone %}
Phone: {{ sale.customer.phone }}
{% endif %} {% if sale.customer.email %}
Email: {{ sale.customer.email }}
{% endif %} {% else %}
Customer: Walk-in Customer
{% endif %}
Cashier: {{ sale.cashier.get_full_name }}
Branch: {{ sale.branch.name }}
--------------------------------------
ITEMS
{% for item in items %}
{{ item.product.name }}
{{ item.quantity }} x {{ item.price|floatformat:2 }} {{ item.total|floatformat:2 }}
{% endfor %}
Subtotal: {{ company_settings.currency_symbol }}{{ sale.subtotal|floatformat:2 }}
{% if sale.tax_amount > 0 %}
VAT ({{ company_settings.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 DETAILS
{% for payment in payments %}
{{ payment.get_payment_method_display }} {% if payment.reference_number %}({{ payment.reference_number }}){% endif %} {{ company_settings.currency_symbol }}{{ payment.amount|floatformat:2 }}
{% endfor %}
Amount Paid: {{ company_settings.currency_symbol }}{{ sale.total_paid|floatformat:2 }}
{% if sale.balance_due > 0 %}
Balance Due: {{ company_settings.currency_symbol }}{{ sale.balance_due|floatformat:2 }}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}