{% extends "base.html" %} {% from "manufacturing/_macros.html" import qty with context %} {% block title %}{{ t('Bills of Materials') }}{% endblock %} {% block content %}

{{ t('Bills of Materials') }}

{% if can_write %}
+ {{ t('New bill of materials') }}
{% endif %}
{% for r in rows %}{% set c = costs[r.id] %} {% else %}{% endfor %}
{{ t('Product') }}{{ t('Reference') }}{{ t('Batch') }}{{ t('Components') }} {{ t('Operations') }}{{ t('Material / unit') }}{{ t('Labour / unit') }}{{ t('Cost / unit') }}
{{ nm(r) }}
{{ r.pcode }}
{{ r.code or '—' }} {{ qty(r.quantity) }} {{ r.uom or '' }}{{ r.n_lines }}{{ r.n_ops }} {{ ((c.material / r.quantity)|round|int)|money }}{{ ((c.conversion / r.quantity)|round|int)|money }} {{ (c.unit|round|int)|money }}
{{ t('No bills of materials yet.') }}
{% endblock %}