{% extends "base.html" %} {% load static %} {% block title %}Sale {{ sale.sale_number }} - POS System{% endblock %} {% block page_pretitle %}
POS System
{% endblock %} {% block page_title %} Sale {{ sale.sale_number }} {% endblock %} {% block page_actions %} Back to Sales {% if sale.status != 'COMPLETED' %} Edit Sale {% endif %} Print Receipt {% endblock %} {% block content %}

Sale Information

{% if sale.status == 'DRAFT' %} Draft {% elif sale.status == 'COMPLETED' %} Completed {% elif sale.status == 'CANCELLED' %} Cancelled {% endif %}
Sale Number
{{ sale.sale_number }}
Sale Date
{{ sale.sale_date|date:"d M Y H:i" }}
Customer
{% if sale.customer %} {{ sale.customer.name }} {% else %} Walk-in Customer {% endif %}
Bank Account
{% if sale.bank_account %} {{ sale.bank_account.name }} {% else %} {% endif %}
{% if sale.notes %}
Notes
{{ sale.notes|linebreaks }}
{% endif %}

Sale Items

{% for item in sale.items.all %} {% endfor %} {% if sale.total_sst > 0 %} {% endif %}
Product Quantity Unit Price Subtotal SST Total
{{ item.product.name }}
{{ item.product.sku }}
{{ item.quantity|floatformat:0 }} RM {{ item.unit_price|floatformat:2 }} RM {{ item.subtotal|floatformat:2 }} {% if item.sst_amount > 0 %}
RM {{ item.sst_amount|floatformat:2 }}
({{ item.sst_percentage }}%) {% else %} {% endif %}
RM {{ item.total|floatformat:2 }}
Subtotal: RM {{ sale.subtotal|floatformat:2 }}
Total SST: RM {{ sale.total_sst|floatformat:2 }}
GRAND TOTAL: RM {{ sale.total_amount|floatformat:2 }}

Summary

Subtotal: RM {{ sale.subtotal|floatformat:2 }}
{% if sale.total_sst > 0 %}
SST: RM {{ sale.total_sst|floatformat:2 }}
{% endif %}
Total: RM {{ sale.total_amount|floatformat:2 }}

Items: {{ sale.items.count }}
{% if sale.invoice %}

Linked Invoice

Invoice Number
{{ sale.invoice.invoice_number }}
{{ sale.invoice.invoice_date|date:"d M Y" }}
{% endif %}

Status

{% if sale.status == 'DRAFT' %}
Draft Sale

This sale is still in draft. Complete it to update inventory.

{% elif sale.status == 'COMPLETED' %}
Completed

This sale has been completed and inventory updated.

{% elif sale.status == 'CANCELLED' %}
Cancelled

This sale has been cancelled.

{% endif %}

Quick Actions

Print Terminal Receipt {% if sale.status != 'COMPLETED' %} Edit Sale {% endif %} Back to Sales
{% endblock %}