Messbericht — Browser-Druck (Strg+P / ⌘P)

MESSBERICHT

MB-{{ (rec.created_at or '2026')[:4] }}-{{ "%04d"|format(rec.id) }}{% if rec.template_name %} · {{ rec.template_name }}{% endif %}

{{ company_name }}
Erstellt: {{ (rec.created_at or '')[:16] }}
{% if rec.item_ident %}Artikel: {{ rec.item_ident }}
{% endif %} {% if rec.serial_no %}Serien-Nr: {{ rec.serial_no }}
{% endif %} {% if rec.first_name %}Prüfer: {{ rec.first_name }} {{ rec.last_name or '' }}
{% endif %} {% if rec.template_description %}{{ rec.template_description }}{% endif %}
{% set status_up = (rec.status or '')|upper %}
{% if status_up == 'OK' %}STATUS: BESTANDEN {% elif status_up in ('FAIL','NOK','FEHLER') %}STATUS: NICHT BESTANDEN {% elif status_up == 'OPEN' %}STATUS: NOCH OFFEN {% else %}{{ status_up or 'STATUS: —' }}{% endif %}
{% for pt in points %} {% set v = values[loop.index0] if loop.index0 < values|length else {} %} {% set ok = v.ok if v.ok is defined else None %} {% endfor %}
Pos. Bezeichnung Soll Tol + Tol − Ist OK?
{{ loop.index }} {{ pt.name }} {{ pt.nominal }}{% if pt.unit %} {{ pt.unit }}{% endif %} {% if pt.tol_plus is defined and pt.tol_plus not in (none, '') %}+{{ pt.tol_plus }}{% else %}—{% endif %} {% if pt.tol_minus is defined and pt.tol_minus not in (none, '') %}−{{ pt.tol_minus }}{% else %}—{% endif %} {% if v.value is defined and v.value not in (none, '') %}{{ v.value }}{% if pt.unit %} {{ pt.unit }}{% endif %}{% else %}—{% endif %} {% if ok == true %} {% elif ok == false %} {% else %}—{% endif %}
{% if rec.note %}
Bemerkung:
{{ rec.note }}
{% endif %}
Datum, Unterschrift Prüfer
Datum, Unterschrift QS-Leiter