{% extends 'base.html' %} {% block title %}Sell Entry - Politory{% endblock %} {% block content %}
{% for message in messages %}
{% if 'success' in message.tags %} ✅ {% elif 'error' in message.tags %} ❌ {% else %} â„šī¸ {% endif %} {{ message }}
{% endfor %}
{% if active_purchase %}
Current Purchase
{{ active_purchase.vendor_name|default:"-" }}
Purchase #
{{ active_purchase.purchase_number|default:"-" }}
Purchased Weight
{{ active_purchase.weight|default:"0" }} kg
Vehicle
{{ active_purchase.vehicle_number|default:"-" }}
Current Balance
{{ available_stock }} kg
{% endif %}
New Sell Entry
{% if active_purchase %}
Balance: {{ available_stock }} kg
{% if not stock_zero and not stock_negative %} {% endif %}
{% endif %}
{% if active_purchase %}
{% csrf_token %}
{% else %}
No Purchase Receiving record exists yet.
{% endif %}
Sell History
{% if active_purchase %} Current Purchase: {{ active_purchase.purchase_number }} {% endif %}
{% for row in history %} {% empty %} {% endfor %}
# Sell # Purchase # Customer Date Weight Rate Amount Vehicle Action
{{ forloop.counter }} {{ row.sells_no|default:"-" }} {{ row.purchase_number|default:"-" }} {{ row.customer_name|default:"-" }} {{ row.entry_date|date:"d-m-Y" }} {{ row.weight }} kg Rs. {{ row.rate }} Rs. {{ row.total_display }} {{ row.vehicle_no|default:"-" }}
No sell records found.
{% if active_purchase and not stock_zero and not stock_negative %} {% endif %} {% endblock %}