{% extends "base.html" %} {% from "manufacturing/_macros.html" import qty as fq with context %} {% block title %}{{ t('Bill of materials') }} · {{ nm(b) }}{% endblock %} {% block content %} {% set cur = company.currency %}
| {{ t('Component') }} | {{ t('Per batch of') }} {{ fq(b.quantity) }} | {{ t('Scrap %') }} | {{ t('For') }} {{ fq(qty) }} | {{ t('Unit cost') }} | {{ t('Cost') }} |
|---|---|---|---|---|---|
| {{ nm(ln) }} {% if ln.product_id in sub_boms %}{{ t('Sub-assembly') }}{% endif %} {{ ln.code }} |
{{ fq(ln.quantity) }} {{ ln.uom or '' }} | {{ fq(ln.scrap_pct) }} | {{ fq(comps.get(ln.product_id, 0)) }} | {{ (costs[ln.product_id]|round|int)|money(cur) }} | {{ ((costs[ln.product_id] * comps.get(ln.product_id, 0))|round|int)|money(cur) }} |
| {{ t('Operation') }} | {{ t('Work centre') }} | {{ t('Minutes per batch') }} | {{ t('For') }} {{ fq(qty) }} | {{ t('Rate / hour') }} | {{ t('Cost') }} |
|---|---|---|---|---|---|
| {{ op.name }} | {{ op.wc_code }} · {{ nm({'name_en': op.wc_name_en, 'name_ar': op.wc_name_ar}) }} | {{ fq(op.minutes) }} | {{ fq(m) }} | {{ op.cost_per_hour|money(cur) }} | {{ ((m / 60 * op.cost_per_hour)|round|int)|money(cur) }} |
| {{ t('No operations.') }} | |||||
{{ t('Price = cost ÷ (1 − margin). Cost is the bill of materials at today\'s component costs and work-centre rates.') }}
{{ b.notes }}