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

Manufacturing Report

Total Orders

{{ total_orders|default:0 }}

Completed

{{ completed_orders|default:0 }}

In Progress

{{ in_progress_orders|default:0 }}

Total BOMs

{{ total_boms|default:0 }}

Manufacturing Orders
{% for order in manufacturing_orders %} {% empty %} {% endfor %}
MO Number BOM Product Quantity Status Start Date End Date Total Cost
{{ order.mo_number }} {{ order.bom.bom_code }} {{ order.bom.product.name }} {{ order.quantity_to_produce }} {% if order.status == 'scheduled' %} Scheduled {% elif order.status == 'in_progress' %} In Progress {% elif order.status == 'completed' %} Completed {% elif order.status == 'cancelled' %} Cancelled {% endif %} {% if order.actual_start_date %}{{ order.actual_start_date|date:"d M Y" }}{% else %}Not started{% endif %} {% if order.actual_end_date %}{{ order.actual_end_date|date:"d M Y" }}{% else %}Not completed{% endif %} {{ order.total_cost|format_rupiah }}
No manufacturing orders found for the selected period.
Bill of Materials Analysis
{% for bom in bom_analysis %} {% empty %} {% endfor %}
BOM Code Product Components Total Cost MO Count Status
{{ bom.bom_code }} {{ bom.product.name }} {{ bom.components_count }} {{ bom.calculated_total_cost|format_rupiah }} {{ bom.mo_count }} {% if bom.is_active %} Active {% else %} Inactive {% endif %}
No BOMs found.
{% endblock %}