{% extends 'base.html' %} {% load static %} {% block title %} Single Material Report | IQChem {% endblock %} {% block content %} {% if R %}

{{mat|upper}} Report for range {{start_date}} to {{end_date}}

{% else %}

SINGLE MATERIAL REPORT

{% endif %}

Chemical Section Platform


{% csrf_token %}


{% if R %} {% endif %}
{% if R %}
{% for r in R %} {% endfor %}
REFERENCE MATERIAL SAMPLED BY SAMPLED QUANTITY SUPPLIER RESULT TECHNOLOGIST STATUS
{{r.reference}} {{r.material}} {{r.sampled_by}} {{r.date_sampled}} {{r.quantity}} {{r.supplier}} {{r.result}} {{r.technologist}} {% if r.status == 'sampled' %} {% elif r.status == 'analysed' %} {% elif r.status == 'checked' %} {% if r.result == 'PASS' %} {% elif r.result == 'FAIL' %} {% else %} {% endif %} {% endif %} {{r.status}} {% if r.has_dispute == True %} {% if r.dispute_status == 'open' %} {% elif r.dispute_status == 'closed' %} {% endif %} {% endif %}
{% endif %} {% if data %}
{{k|upper}} REPORT

Total : {{data.count}}

Total Passed : {{data.pass}}

Total Failed : {{data.fail}}

SUPPLIERS DETAILS

    {% for a,b in data.suppliers.items %}
  1. {{a|upper}}

    Supplies : {{b.count}}

    Passed : {{b.pass}}

    Failed : {{b.fail}}

    Disputes observed

    {% if b.disputes|length > 0 %}
      {% for d in b.disputes %}
    • {{d}}
    • {% endfor %}
    {% else %}

        - No disputes was raised on this material

    {% endif %}
  2. {% endfor %}
{% else %}

NO INFORMATION TO DISPLAY


{% endif %}


{% endblock %}