Messbericht — Browser-Druck (Strg+P / ⌘P)
{% 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 %}
| Pos. |
Bezeichnung |
Soll |
Tol + |
Tol − |
Ist |
OK? |
{% 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 %}
| {{ 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 %}
|
{% endfor %}
{% if rec.note %}
Bemerkung:
{{ rec.note }}
{% endif %}
Datum, Unterschrift Prüfer
Datum, Unterschrift QS-Leiter