{% extends 'core/base.html' %} {% load static %} {% block title %}{{ product.name }} - SwiftPOS{% endblock %} {% block topbar_title %} Product Detail {% endblock %} {% block content %}
{% if messages %} {% for message in messages %}
{% if message.tags == 'success' %} {% elif message.tags == 'error' or message.tags == 'danger' %} {% elif message.tags == 'warning' %} {% else %} {% endif %}
{{ message }}
{% endfor %} {% endif %}
Product: {{ product.name }}
SKU: {{ product.sku }}{% if product.barcode %} ยท Barcode: {{ product.barcode }}{% endif %}
{% if product.image %}
{{ product.name }}
{% else %}
{% endif %}
Image preview (optional). You can update it from "Edit" above.
Stock
Current stock {{ product.stock_quantity }}
Minimum stock {{ product.minimum_stock }}
Status {% if product.stock_status == 'in_stock' %} {{ product.get_stock_status_display }} {% elif product.stock_status == 'low_stock' %} {{ product.get_stock_status_display }} {% else %} {{ product.get_stock_status_display }} {% endif %}
Product Information
Selling price
{{ currency_symbol }}{{ product.price }}
Cost price
{{ currency_symbol }}{{ product.cost_price }}
Category
{{ product.category.name|default:"Uncategorized" }}

Supplier
{{ product.supplier|default:"Not specified" }}
Created
{{ product.created_at|date:"Y-m-d" }} {{ product.created_at|time:"H:i" }}
{% if product.description %}
Description

{{ product.description }}

{% endif %}
{# --- Product Barcode card --- #}
Product Barcode
{% if product.barcode %} {{ product.barcode }} {% else %} No barcode set {% endif %}
{% if product.barcode %}

The image includes the barcode and product name for easy recognition.

{% else %}

This product does not have a barcode yet. Set a barcode on the edit page to generate an image.

{% endif %}
{% block extra_js %} {{ block.super|default:"" }} {% endblock %} {% endblock %}