{% extends "base.html" %} {% from "units/_m.html" import doc_badge with context %} {% block title %}{{ t('Non-conformance Reports') }}{% endblock %} {% block content %}

{{ t('Non-conformance Reports') }}

{{ t('Defects found on incoming material, in production, on site or by the customer, with root cause and corrective action.') }}

{% if can_write %}
+ {{ t('New NCR') }}
{% endif %}
{{ t('Open') }}
{{ stats.open or 0 }}
{{ t('Overdue') }}
{{ stats.late or 0 }}
{{ t('Raised in 12 months') }}
{{ stats.n or 0 }}
{{ t('Cost of poor quality') }}
{{ stats.cost|money }}{{ company.currency }}
{% for k, l in [('open', 'Open'), ('closed', 'Closed'), ('all', 'All')] %}{{ t(l) }}{% endfor %}
{% for n in rows %} {% else %}{% endfor %}
{{ t('NCR') }}{{ t('Date') }}{{ t('Source') }}{{ t('Severity') }}{{ t('Description') }}{{ t('Concerns') }}{{ t('Due') }}{{ t('Status') }}
{{ n.number }}{{ n.date }}{{ t(sources[n.source]) }} {{ t(severity[n.severity]) }} {{ n.description[:120] }}{{ n.serial or n.mo_number or n.prod_en or n.partner_en or '—' }} {{ n.due_date or '—' }}{{ doc_badge(n.state) }}
{{ t('No non-conformance reports.') }}
{% endblock %}