{% load i18n %}
{% if not cost.has_routing %}
{% trans "No manufacturing routing defined — add operations in the mBOM tab." %}
{% else %}
{% trans "Assembly Cost Breakdown" %} {% trans "batch" %} × {{ cost.batch_size }}{% if cost.overhead_percent and cost.overhead_percent > 0 %} · {% trans "overhead" %}: {{ cost.overhead_percent|floatformat:2 }}%{% endif %}
{% if cost.overhead_percent and cost.overhead_percent > 0 %} {% endif %}
{% trans "Component" %} {% trans "Per Unit" %} {% trans "Batch Total" %}
{% trans "Material (eBOM)" %} {{ cost.per_unit_material_min|floatformat:4 }} EUR {{ cost.material_cost_min|floatformat:4 }} EUR
{% trans "Labor" %} {{ cost.per_unit_labor|floatformat:4 }} EUR {{ cost.labor_cost|floatformat:4 }} EUR
{% trans "Machine" %} {{ cost.per_unit_machine|floatformat:4 }} EUR {{ cost.machine_cost|floatformat:4 }} EUR
{% trans "Overhead" %} ({{ cost.overhead_percent|floatformat:2 }}%) {{ cost.per_unit_overhead|floatformat:4 }} EUR {{ cost.overhead_cost|floatformat:4 }} EUR
{% trans "Total Assembly" %} {{ cost.per_unit_total_min|floatformat:4 }} EUR —
{% trans "CO₂ Estimate" %} {{ cost.co2_kg|floatformat:4 }} kg ({% trans "total batch" %})
{% blocktrans with size=cost.batch_size %} Costs shown for a standard batch of {{ size }} unit(s). Setup costs are amortised across the batch. {% endblocktrans %} {% if cost.overhead_percent and cost.overhead_percent > 0 %} {% blocktrans with pct=cost.overhead_percent|floatformat:2 %} Includes {{ pct }}% general overhead factor on labor and machine. {% endblocktrans %} {% endif %}
{% if op_breakdown %}
{% trans "Operation Detail" %}
{% for op in op_breakdown %}
{{ op.sequence_number }}
{{ op.name }}
{% if op.sub_count > 0 %} {% trans "Description step" %} • {{ op.sub_count }} {% trans "sub-step(s)" %} {% else %} {{ op.labor_rate_name }} {% if op.machine_name != "—" %} / {{ op.machine_name }}{% endif %} • Setup {{ op.setup_time|floatformat:1 }}min • Cycle {{ op.cycle_time|floatformat:2 }}min/unit {% endif %}
{% if op.sub_count == 0 %}/unit{% endif %}
{% if op.sub_count > 0 %}—{% else %}{{ op.per_unit_cost|floatformat:4 }} EUR{% endif %}
{% endfor %}
{% endif %} {% endif %}