{% extends "report/inventree_report_base.html" %} {% load i18n %} {% load report %} {% load inventree_extras %} {% block style %} .test-table { width: 100%; } {% block bottom_left %} content: "{{ date.isoformat }}"; {% endblock %} {% block bottom_center %} content: "{% inventree_version shortstring=True %}"; {% endblock %} {% block top_center %} content: "{% trans 'Stock Item Test Report' %}"; {% endblock %} .test-row { padding: 3px; } .test-pass { color: #5f5; } .test-fail { color: #F55; } .container { padding: 5px; border: 1px solid; } .text-left { display: inline-block; width: 50%; } .img-right { display: inline; align-content: right; align-items: right; width: 50%; } .part-img { height: 4cm; } {% endblock %} {% block pre_page_content %} {% endblock %} {% block page_content %}

{{ part.full_name }}

{{ part.description }}

{{ stock_item.location }}

Stock Item ID: {{ stock_item.pk }}


{% if stock_item.is_serialized %} {% trans "Serial Number" %}: {{ stock_item.serial }} {% else %} {% trans "Quantity" %}: {% decimal stock_item.quantity %} {% endif %}

{% if resul_list|length > 0 %}

{% trans "Test Results" %}

{% for test in result_list %} {% if test.result %} {% else %} {% endif %} {% endfor %}
{% trans "Test" %} {% trans "Result" %} {% trans "Value" %} {% trans "User" %} {% trans "Date" %}

{{ test.test }}{% trans "Pass" %}{% trans "Fail" %}{{ test.value }} {{ test.user.username }} {{ test.date.date.isoformat }}
{% endif %} {% if installed_items|length > 0 %}

{% trans "Installed Items" %}

{% for sub_item in installed_items %} {% endfor %}
{{ sub_item.part.full_name }} {% if sub_item.serialized %} {% trans "Serial" %}: {{ sub_item.serial }} {% else %} {% trans "Quantity" %}: {% decimal sub_item.quantity %} {% endif %}
{% endif %} {% endblock %} {% block post_page_content %} {% endblock %}