{% extends "module_base.html" %} {% load static %} {% load indonesian_filters %} {% block title %}Manufacturing Order Details{% endblock %} {% block content %}

Manufacturing Order Details

{% if mo.status == 'scheduled' %} Start {% elif mo.status == 'in_progress' %} Complete Cancel {% endif %} Edit Delete
MO Number: {{ mo.mo_number }}
BOM: {{ mo.bom.bom_code }} - {{ mo.bom.product.name }}
Quantity to Produce: {{ mo.quantity_to_produce|floatformat:2 }}
Status: {% if mo.status == 'scheduled' %} Scheduled {% elif mo.status == 'in_progress' %} In Progress {% elif mo.status == 'completed' %} Completed {% elif mo.status == 'cancelled' %} Cancelled {% endif %}
Created: {{ mo.created_at|date:"d M Y H:i" }}
Updated: {{ mo.updated_at|date:"d M Y H:i" }}
Scheduled Dates

Start: {{ mo.scheduled_start_date|date:"d M Y" }}

End: {{ mo.scheduled_end_date|date:"d M Y" }}

Actual Dates

Start: {% if mo.actual_start_date %}{{ mo.actual_start_date|date:"d M Y" }}{% else %}Not started{% endif %}

End: {% if mo.actual_end_date %}{{ mo.actual_end_date|date:"d M Y" }}{% else %}Not completed{% endif %}

Required Components
{% if mo.mocomponent_set.exists %}
{% for component in mo.mocomponent_set.all %} {% endfor %}
Component Required Quantity Unit Cost Total Cost
{{ component.component.name }} {{ component.required_quantity|floatformat:2 }} {{ component.component.cost|format_rupiah }} {{ component.total_cost|format_rupiah }}
Total Cost: {{ mo.total_cost|format_rupiah }}
{% else %}

No components defined for this manufacturing order.

{% endif %}
{% endblock %}