{% extends "base.html" %} {% from "manufacturing/_macros.html" import mo_badge, qty with context %} {% block title %}{{ mo.number }}{% endblock %} {% block content %} {% set cur = branch.currency if branch else company.currency %} {% set open_state = mo.state in ('confirmed', 'in_progress') %}
{{ mo.notes }}
{% endif %}| {{ t('Operation') }} | {{ t('Work centre') }} | {{ t('Planned (min)') }} | {{ t('Actual (min)') }} | {{ t('Rate / hour') }} | |
|---|---|---|---|---|---|
| {{ op.name }} | {{ op.wc_code }} · {{ nm({'name_en': op.wc_name_en, 'name_ar': op.wc_name_ar}) }} | {{ qty(op.planned_minutes) }} | {% if op.actual_minutes is not none %}{{ qty(op.actual_minutes) }}{% else %}—{% endif %} | {{ op.cost_per_hour|money(cur) }} | {% if open_state and can_write %}{% elif op.state == 'done' %}{{ t('Done') }}{% endif %} |
| {{ t('No operations on this bill of materials.') }} | |||||
| {{ t('Check') }} | {{ t('Specification') }} | {{ t('Result') }} | |
|---|---|---|---|
| {{ c.name }}{% if c.notes %} {{ c.notes }}{% endif %} |
{% if c.kind == 'measure' %}{{ c.min_value if c.min_value is not none else '…' }} – {{ c.max_value if c.max_value is not none else '…' }} {{ c.unit or '' }}{% else %}{{ t('Pass / fail') }}{% endif %} | {% if c.result %}{{ t('Pass') if c.result == 'pass' else t('Fail') }}{% if c.value is not none %} {{ c.value }} {{ c.unit or '' }}{% endif %}{% else %}{{ t('To check') }}{% endif %} | {% if mo.state not in ('done', 'cancelled', 'draft') and can_write %} {% endif %} |
| {{ t('No quality points for this product.') }} {% if mo.state == 'draft' %}{{ t('Checks are created when the order is confirmed.') }}{% endif %} | |||
{{ t('Consumes the components above, books the labour and machine time, and receives the good pieces into stock at their cost.') }}
| {{ t('Planned') }} | {% if mo.state == 'done' %}{{ t('Actual') }} | {{ t('Difference') }} | {% endif %}|
|---|---|---|---|
| {{ t(label) }} | {{ planned[key]|money(cur) if planned else '—' }} | {% if mo.state == 'done' %}{{ actual[key]|money(cur) }} | {{ (actual[key] - planned[key])|money(cur) if planned else '' }} | {% endif %}
| {{ t('Per unit') }} | {{ (planned.unit|round|int)|money(cur) if planned else '—' }} | {% if mo.state == 'done' %}{{ actual.unit|money(cur) }} | {% endif %} |
{{ t('Planned: bill of materials at today\'s component costs and work-centre rates. Actual: what was consumed and worked on this order.') }}