{% extends "marchant_base.html" %}
{% load static %}
{% load crispy_forms_tags %}
{% block title %}
{% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %}
{% comment %} {% if request.user.user_type == 'Mother_Organization_admin' %}
{% include 'marchant_app/sample_section/index/mother_admin_index.html' %}
{% endif %}
{% if request.user.user_type == 'Sister_Organization_admin' %}
{% include 'marchant_app/sample_section/index/sister_admin_index.html' %}
{% endif %}
{% if request.user and request.user.user_type != 'Sister_Organization_admin' and request.user.user_type != 'Mother_Organization_admin' and request.user.is_superuser != True %}
{% include 'marchant_app/sample_section/index/merchant_admin.html' %}
{% endif %} {% endcomment %}
{% comment %} {% if lot_number_list %} {% endcomment %}
{% if lot_number_list %}
SL No |
Style Number |
PO |
Lot Number |
Shipment Date |
Quantity |
Value |
Action |
{% regroup lot_number_list by purchase_number.style.style_number as grouped %}
{% for group in grouped %}
{% for obj in group.list %}
{% ifchanged %}
{{forloop.parentloop.counter}} |
{{ obj.purchase_number.style.style_number }} |
{% endifchanged %}
{{ obj.purchase_number }} |
{{ obj.lot_number }} |
{{ obj.shipment_date }} |
{{ obj.quantity }} |
{{ obj.value|floatformat:3 }} |
|
{% endfor %}
{% endfor %}
{% comment %}{% for lot_number in lot_number_list %}
{{forloop.counter}} |
{{ lot_number.purchase_number.style.style_number }} |
{{ lot_number.purchase_number }} |
{{ lot_number.lot_number }} |
{{ lot_number.shipment_date }} |
{{ lot_number.quantity }} |
{{ lot_number.value }} |
|
{% endfor %}
{% endcomment %}
{% if lot_number_list.has_other_pages %}
{% endif %}
{% else %}
SL No |
Style Number |
PO |
Shipment Date |
Quentity |
Value |
Action |
No Data Found |
{% endif %}
{% endblock MainContent %}
{% block meassage %}
{% include 'notifications/notifications.html' %}
{% endblock meassage %}
{% block JS %}
{% endblock JS %}