{% extends 'base.html' %} {% load humanize %} {% block title %}Void Sale {{ sale.invoice_number }} - Ghana Wholesale{% endblock %} {% block content %}
Void/Cancel Sale
WARNING: This action cannot be undone!

You are about to void sale {{ sale.invoice_number }}. This will restore stock to the shop and mark the sale as cancelled.

Sale Details:

Invoice: {{ sale.invoice_number }}

Date: {{ sale.created_at|date:"d M Y, H:i" }}

Shop: {{ sale.shop.name }} ({{ sale.shop.code }})

Items: {{ sale.items_count }}

Total Amount: GH₵ {{ sale.total_amount|floatformat:2 }}

Status: {{ sale.get_status_display }}

{% if sale.items.all %}
Items to be Restored:
    {% for item in sale.items.all %}
  • {{ item.product.name }} - {{ item.quantity }} {{ item.product.unit }}
  • {% endfor %}
{% endif %}
{% csrf_token %}
This will be recorded in the sale notes.
Cancel
{% endblock %} {% block extra_js %} {% endblock %}