{% extends 'base.html' %} {% load humanize %} {% block title %}Sale {{ sale.invoice_number }} - Ghana Wholesale{% endblock %} {% block content %}

Sale {{ sale.invoice_number }}

Back to List Print Receipt {% if sale.status == 'draft' or sale.status == 'pending' %} Void Sale {% endif %}
Sale Information
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 %}
{% if sale.notes %}
Notes:

{{ sale.notes|linebreaks }}

{% endif %}
Sale Items ({{ sale.items_count }})
{% for item in sale.items.all %} {% endfor %}
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 }}
Financial Summary
GH₵ {{ sale.total_amount|floatformat:2 }}
Total Sale Amount
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 %}
{% if sale.status == 'draft' %}
Draft Sale: This sale is still a draft. Process Payment to complete it.
{% elif sale.status == 'pending' %}
Pending Payment: Balance of GH₵ {{ sale.balance|floatformat:2 }} is pending. Process Payment
{% elif sale.status == 'completed' %}
Completed: Sale fully paid and completed.
{% endif %}
{% if receipt %}
Receipt Information
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 }}
{% elif sale.status == 'completed' %}
Generate Receipt
No receipt generated yet for this completed sale.
{% endif %}
Actions
Print Receipt {% if sale.status == 'draft' or sale.status == 'pending' %} Process Payment Void/Cancel Sale {% endif %} Back to POS
{% endblock %}