{% extends "base.html" %} {% from "units/_m.html" import unit_badge with context %} {% block title %}{{ t('Units') }}{% endblock %} {% block content %}

{{ t('Units') }}

{{ t('Every portable unit made, by serial number, from the factory to handover or rent.') }}

{% if can_write %}
{{ t('Dispatch Notes') }}+ {{ t('New dispatch') }}
{% endif %}
{{ t('All') }} {{ counts.values()|sum }} {% for k, l in states.items() %}{% if counts.get(k) %}{{ t(l) }} {{ counts[k] }}{% endif %}{% endfor %}
{% if can_write %}
{{ t('With the ticked units') }}:
{% endif %} {% for u in rows %} {% else %}{% endfor %}
{{ t('Serial') }}{{ t('Product') }}{{ t('Project') }}{{ t('Customer') }} / {{ t('Site') }}{{ t('Cost') }}{{ t('Status') }}{{ t('Warranty until') }}
{{ u.serial }}
{{ u.mo_number or '' }}
{{ nm(u) }}
{{ u.code }}
{{ u.pcode or '—' }}{{ u.cust_en or '—' }}{% if u.site %}
{{ u.site }}{% endif %}
{{ u.cost|money }}{{ unit_badge(u.state) }}{{ u.warranty_until or '—' }}
{{ t('No units yet. Units are created when a production order of a serial-numbered product is finished.') }}
{% endblock %}