{% extends "base.html" %} {% load static %} {% block title %}{{ product.name }} - Product Detail{% endblock %} {% block page_pretitle %}
POS System
{% endblock %} {% block page_title %} {{ product.name }} {% endblock %} {% block page_actions %} Back to Products Edit Product {% endblock %} {% block content %}

Product Information

Product Name
{{ product.name }}
SKU
{{ product.sku }}
Category
{% if product.category %} {{ product.category.name }} {% else %} No category {% endif %}
Unit of Measure
{{ product.unit_of_measure|default:"—" }}
Barcode
{{ product.barcode|default:"—" }}
Status
{% if product.is_active %} Active {% else %} Inactive {% endif %}
{% if product.description %}
Description
{{ product.description|linebreaks }}
{% endif %}

Pricing

Cost Price
RM {{ product.cost_price|floatformat:2 }}
Selling Price
RM {{ product.selling_price|floatformat:2 }}
Profit Margin
{% widthratio product.selling_price 1 100 %} {% widthratio product.cost_price 1 100 %} {% with margin=product.selling_price|add:product.cost_price|floatformat:2 %} {{ margin }}% {% endwith %}
{% if product.include_sst %}
SST Included: {{ product.sst_percentage }}% (RM {{ product.sst_amount|floatformat:2 }})
{% endif %}

Recent Inventory Movements

View All
{% for movement in recent_movements %} {% empty %} {% endfor %}
Date Type Quantity Before After Reference Notes
{{ movement.created_at|date:"d M Y H:i" }} {{ movement.get_movement_type_display }} {% if movement.movement_type == 'IN' or movement.movement_type == 'ADJUSTMENT_IN' %} {{ movement.quantity }} {% else %} {{ movement.quantity }} {% endif %} {{ movement.stock_before|floatformat:0 }} {{ movement.stock_after|floatformat:0 }} {{ movement.reference_number|default:"—" }} {{ movement.notes|default:"—"|truncatewords:5 }}

No movements yet

Stock movements will appear here

Stock Status

Current Stock
{{ product.current_stock|floatformat:0 }} {% if product.unit_of_measure %} {{ product.unit_of_measure }} {% endif %}
Reorder Level
{{ product.reorder_level|floatformat:0 }}
Stock Value
RM {{ stock_value|floatformat:2 }}
{% if product.current_stock <= 0 %}
Out of Stock!

This product is currently unavailable.

{% elif product.current_stock <= product.reorder_level %}
Low Stock Alert!

Stock below reorder level. Please restock soon.

{% else %}
In Stock

Stock level is healthy.

{% endif %}
{% endblock %}