{% extends "module_base.html" %} {% load static %} {% load indonesian_filters %} {% block title %}Bill of Material Details{% endblock %} {% block content %}

Bill of Material Details

BOM Code: {{ bom.bom_code }}
Product: {{ bom.product.name }}
Version: {{ bom.version }}
Status: {% if bom.is_active %} Active {% else %} Inactive {% endif %}
Created: {{ bom.created_at|date:"d M Y H:i" }}
Updated: {{ bom.updated_at|date:"d M Y H:i" }}
Components
{% if bom.bomitem_set.exists %}
{% for item in bom.bomitem_set.all %} {% endfor %}
Component Quantity Unit of Measure Unit Cost Total Cost
{{ item.component.name }} {{ item.quantity|floatformat:2 }} {{ item.unit_of_measure.name }} {{ item.component.cost|format_rupiah }} {{ item.total_cost|format_rupiah }}
Total Cost: {{ bom.total_cost|format_rupiah }}
{% else %}

No components defined for this BOM.

{% endif %}
Manufacturing Orders
{% if bom.manufacturingorder_set.exists %}
{% for mo in bom.manufacturingorder_set.all %} {% endfor %}
MO Number Quantity to Produce Status Start Date End Date Actions
{{ mo.mo_number }} {{ mo.quantity_to_produce|floatformat:2 }} {% if mo.status == 'scheduled' %} Scheduled {% elif mo.status == 'in_progress' %} In Progress {% elif mo.status == 'completed' %} Completed {% elif mo.status == 'cancelled' %} Cancelled {% endif %} {{ mo.scheduled_start_date|date:"d M Y" }} {{ mo.scheduled_end_date|date:"d M Y" }}
{% else %}

No manufacturing orders using this BOM.

{% endif %}
{% endblock %}