{% extends 'base.html' %} {% load humanize %} {% block title %}{{ product.name }} - Product Details{% endblock %} {% block content %}

{{ product.name }}

Edit Product Back to List
Product Information
SKU: {{ product.sku }}
Barcode: {{ product.barcode|default:"Not set" }}
Name: {{ product.name }}
Category: {% if product.category %} {{ product.category.name }} {% else %} Not assigned {% endif %}
Supplier: {% if product.supplier %} {{ product.supplier.name }} {% else %} Not assigned {% endif %}
Unit: {{ product.get_unit_display }}
Cost Price: GH₵ {{ product.cost_price|floatformat:2 }}
Selling Price: GH₵ {{ product.selling_price|floatformat:2 }}
Wholesale Price: {% if product.wholesale_price %} GH₵ {{ product.wholesale_price|floatformat:2 }} {% else %} Not set {% endif %}
Margin: {{ product.margin_percentage|floatformat:1 }}% (GH₵ {{ product.margin_amount|floatformat:2 }})
Reorder Level: {{ product.reorder_level }}
Reorder Quantity: {{ product.reorder_quantity }}
{% if product.description %}
Description:

{{ product.description|linebreaks }}

{% endif %}
{% if product.is_active %}Active{% else %}Inactive{% endif %} Created: {{ product.created_at|date:"d M Y" }} | Updated: {{ product.updated_at|date:"d M Y" }}
Stock Information
{{ product.warehouse_stock }}
Warehouse Stock {% if product.is_low_stock %}
Low Stock {% endif %}
{{ product.reorder_level }}
Reorder Level
{{ product.reorder_quantity }}
Reorder Quantity
{% if warehouse %} {% endif %}
{% if shop_stocks %}
Shop Stocks
{% for stock in shop_stocks %} {% endfor %}
Shop Type Quantity Available Selling Price Status
{{ stock.shop.name }}
{{ stock.shop.code }}
{{ stock.shop.get_shop_type_display }} {{ stock.quantity }} {{ stock.available }} GH₵ {{ stock.effective_price|floatformat:2 }} {% if stock.is_low_stock %} Low Stock {% else %} OK {% endif %}
{% endif %}
Quick Actions
Transfer Stock Edit Product Scan Barcode {% if product.barcode %}
Barcode:
{{ product.barcode }}
Use this for scanning
{% endif %}
{% if warehouse_stock %}
Warehouse Stock
{{ warehouse_stock.available }}
Available Units
Total Quantity: {{ warehouse_stock.quantity }}
Committed: {{ warehouse_stock.committed }}
Available: {{ warehouse_stock.available }}
Reorder Point: {{ warehouse_stock.reorder_point }}
Min Stock: {{ warehouse_stock.min_stock }}
Max Stock: {{ warehouse_stock.max_stock }}
Stock Value: GH₵ {{ warehouse_stock.stock_value|floatformat:2 }}
{% if warehouse_stock.is_low_stock %}
Low Stock Alert! Reorder point reached.
{% endif %}
{% endif %} {% if movements %}
Recent Stock Movements
{% for movement in movements %}
{{ movement.get_movement_type_display }}
{{ movement.created_at|date:"d M, H:i" }}
{% if movement.quantity > 0 %}+{% endif %}{{ movement.quantity }}
{% if movement.notes %} {{ movement.notes|truncatechars:50 }} {% endif %}
{% endfor %}
{% endif %}
{% endblock %} {% block extra_css %} {% endblock %}