{% extends 'base.html' %} {% load manufacture_extras %} {% block title %}BOM - {{ bom.manufactured_product.name }}{% endblock %} {% block content %}

Bill of Materials

Back to List {% if user.is_superuser or user.is_staff %} Edit {% endif %}
BOM Details

Manufactured Product: {{ bom.manufactured_product.name }}

Product Code: {{ bom.manufactured_product.code }}

Component: {{ bom.component.name }}

Quantity: {{ bom.quantity|format_quantity }}

Unit: {{ bom.unit|default:bom.component.unit }}

{% with bom.manufactured_product.bom_manufactured.all as all_components %} {% if all_components.count > 1 %}
All Components for {{ bom.manufactured_product.name }}
{% for component_bom in all_components %} {% endfor %}
Component Quantity Unit Actions
{{ component_bom.component.name }} {{ component_bom.quantity|format_quantity }} {{ component_bom.unit|default:component_bom.component.unit }} {% if component_bom.pk != bom.pk %} {% endif %}
{% endif %} {% endwith %}
Cost Information

Component Cost Price: Rp {{ bom.component.cost_price|format_currency }}

Total Component Cost: Rp {{ bom.get_total_component_cost|format_currency }}

Product Information

Component Code: {{ bom.component.code }}

Component Category: {{ bom.component.category.name|default:"N/A" }}

Component Current Stock: {{ bom.component.current_stock }}

Component Unit: {{ bom.component.unit }}

Timestamps

Created: {{ bom.created_at|date:"d/m/Y H:i" }}

Updated: {{ bom.updated_at|date:"d/m/Y H:i" }}

{% endblock %}