{% extends 'base.html' %} {% load humanize %} {% block title %}Sale {{ sale.invoice_number }} - Ghana Wholesale{% endblock %} {% block content %}
| Invoice Number: | {{ sale.invoice_number }} |
|---|---|
| Date & Time: | {{ sale.created_at|date:"d M Y, H:i:s" }} |
| Shop: | {{ sale.shop.name }} ({{ sale.shop.code }}) |
| Cashier: | {{ sale.cashier.get_full_name|default:sale.cashier.username }} |
| Assistant: | {% if sale.assistant %} {{ sale.assistant.get_full_name|default:sale.assistant.username }} {% else %} Not assigned {% endif %} |
| Customer: | {% if sale.customer %} {{ sale.customer.name }} ({{ sale.customer.phone }}) {% else %} Walk-in Customer {% endif %} |
|---|---|
| Status: | {% if sale.status == 'draft' %} Draft {% elif sale.status == 'pending' %} Pending Payment {% elif sale.status == 'completed' %} Completed {% elif sale.status == 'cancelled' %} Cancelled {% elif sale.status == 'refunded' %} Refunded {% endif %} |
| Payment Method: |
{{ sale.get_payment_method_display }}
{% if sale.mobile_money_number %}
{{ sale.mobile_money_number }} {% endif %} |
| VAT Invoice: | {% if sale.vat_invoice %} Yes {% if sale.vat_number %}({{ sale.vat_number }}){% endif %} {% else %} No {% endif %} |
{{ sale.notes|linebreaks }}
| Product | Quantity | Unit Price | Discount | Total Price | Profit |
|---|---|---|---|---|---|
|
{{ item.product.name }}
{{ item.product.sku }} |
{{ item.quantity }} {{ item.product.unit }} | GH₵ {{ item.unit_price|floatformat:2 }} | -GH₵ {{ item.discount|floatformat:2 }} | GH₵ {{ item.total_price|floatformat:2 }} | GH₵ {{ item.profit|floatformat:2 }} |
| Subtotal: | GH₵ {{ sale.subtotal|floatformat:2 }} |
|---|---|
| Discount: | -GH₵ {{ sale.discount_amount|floatformat:2 }} |
| VAT (15%): | GH₵ {{ sale.tax_amount|floatformat:2 }} |
| Total Amount: | GH₵ {{ sale.total_amount|floatformat:2 }} |
| Amount Paid: | GH₵ {{ sale.amount_paid|floatformat:2 }} |
| Balance: | {% if sale.balance > 0 %} GH₵ {{ sale.balance|floatformat:2 }} {% else %} Paid in Full {% endif %} |
| Receipt Number: | {{ receipt.receipt_number }} |
|---|---|
| Printed At: | {{ receipt.printed_at|date:"d M Y, H:i" }} |
| Printed By: | {{ receipt.printed_by.get_full_name|default:receipt.printed_by.username }} |