{% extends "base.html" %} {% block title %}{{ _('Riepilogo') }} - {{ recipe.name }}{% endblock %} {% block content %}

{{ _('Misurazioni Complete') }}

{{ _('Codice') }}

{{ recipe.code }}

{{ _('Nome') }}

{{ recipe.name }}

{{ _('Versione') }}

{{ recipe.current_version.version_number if recipe.current_version else recipe.version }}

{{ _('Lotto') }}

{{ lot_number or '-' }}

{% if serial_number %}

{{ _('Seriale') }}

{{ serial_number }}

{% endif %}
{% set total_count = measurements|length %} {% set pass_count = measurements|selectattr('pass_fail', 'equalto', 'pass')|list|length %} {% set warning_count = measurements|selectattr('pass_fail', 'equalto', 'warning')|list|length %} {% set fail_count = measurements|selectattr('pass_fail', 'equalto', 'fail')|list|length %}

{{ _('Totale') }}

{{ total_count }}

{{ _('Conformi') }}

{{ pass_count }}

{{ _('Attenzione') }}

{{ warning_count }}

{{ _('Non Conformi') }}

{{ fail_count }}

{{ _('Dettaglio Misurazioni') }}

{% for m in measurements|sort(attribute='task_info.order_index,subtask.marker_number') %} {% endfor %}
{{ _('Data/Ora') }} {{ _('Task') }} {{ _('Descrizione') }} {{ _('Nominale') }} {{ _('Valore') }} {{ _('Deviazione') }} {{ _('Esito') }} {{ _('Metodo') }}
{{ m.measured_at[:16]|replace('T', ' ') if m.measured_at else '-' }} {{ m.task_info.title if m.task_info else '-' }} {{ m.subtask.description }} {{ "%.3f"|format(m.subtask.nominal) }} {{ m.subtask.unit }} {{ "%.3f"|format(m.value) }} {{ m.subtask.unit }} {{ "%+.3f"|format(m.deviation) }} {% if m.pass_fail == 'pass' %} {{ _('Pass') }} {% elif m.pass_fail == 'warning' %} {{ _('Warning') }} {% elif m.pass_fail == 'fail' %} {{ _('Fail') }} {% else %} - {% endif %} {% if m.input_method == 'manual' %}
{{ _('Manuale') }}
{% elif m.input_method == 'usb_caliper' %}
{{ _('Calibro') }}
{% else %} - {% endif %}
{% if current_user.get('roles') and 'Metrologist' in current_user.get('roles', []) %} {{ _('Statistiche') }} {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}