{% extends "base.html" %} {% load static %} {% block title %}Sales Return - {{ so.so_number }}{% endblock %} {% block content %}

Sales Return for SO {{ so.so_number }}

{% csrf_token %} {{ formset.management_form }}
Return Items
{% for form in formset %} {% endfor %}
Product Unit Price Purchased Qty Return Quantity Total
{{ form.product }} {{ form.price }} {% for item in so.items.all %} {% if item.product.id == form.initial.product %} {{ item.quantity }} {% endif %} {% endfor %} {{ form.quantity }} {% if form.quantity.errors %}
{{ form.quantity.errors }}
{% endif %}
Cannot exceed sold quantity
0.00
Grand Total: 0.00
Cancel
{% endblock %}