{% load i18n humanize %} {% load industry_tags %} {% if perms.industry_reforged.industrialist_access or perms.industry_reforged.corp_access %}
{% if material_view %}{% include "industry_reforged/partials/order_material_status.html" %}{% endif %} {% include "industry_reforged/partials/haul_list.html" %} {% if perms.industry_reforged.corp_access and missing_order_materials %}

{% trans "Missing Materials" %}

{% csrf_token %}
{% if material_view %} {% else %} {% endif %} {% if material_view %}{% endif %} {% for mat in missing_order_materials %} {% if material_view %}{% endif %} {% if material_view %}{% endif %} {% endfor %}
{% trans "Material" %} {% trans "Corp Stock" %} {% trans "For earlier orders" %} {% trans "Still needed" %}{% trans "Required" %}{% trans "Shortfall" %}{% trans "On buy order" %}
{{ mat.name }} {{ mat.name }} {{ mat.group_name }}
{{ mat.corp_stock|default:0|intcomma }}{% include "industry_reforged/partials/stock_locations.html" %}{{ mat.reserved_earlier|intcomma }}{{ mat.quantity|intcomma }} {{ mat.shortfall|intcomma }}{{ mat.on_order|intcomma }}
{% endif %}

{% trans "Required Raw Materials" %}{% if material_view %} ({% trans "full order, for the quote" %}){% endif %}

{% for mat in bom_materials %} {% endfor %} {% if bom_blueprints %} {% for mat in bom_blueprints %} 0 %}data-shortage="true"{% endif %}> {% endfor %} {% endif %}
{% trans "Type" %} {% trans "Material" %} {% trans "Corp Stock" %} {% trans "Base (ME0)" %} {% trans "Required" %} {% trans "Unit Cost" %} {% trans "Total Cost" %}
{{ mat.group_name }}
{{ mat.name }} {{ mat.name }}
{% if mat.corp_stock >= mat.quantity %} {{ mat.corp_stock|default:0|intcomma }} {% else %} {{ mat.corp_stock|default:0|intcomma }} {% endif %} {% include "industry_reforged/partials/stock_locations.html" %} {% if mat.base_quantity and mat.base_quantity > mat.quantity %} {{ mat.base_quantity|intcomma }} {% else %} {{ mat.quantity|intcomma }} {% endif %} {{ mat.quantity|intcomma }} {% if mat.savings > 0 %}
-{{ mat.savings|intcomma }} {% endif %} {% if mat.remaining_need is not None and mat.remaining_need < mat.quantity %}
{% trans "still needed:" %} {{ mat.remaining_need|intcomma }} {% endif %}
{% if mat.original_jita_price > mat.price_per_unit %} {{ mat.original_jita_price|eve_isk }}
{% elif mat.original_jita_price < mat.price_per_unit and mat.original_jita_price > 0 %} {{ mat.original_jita_price|eve_isk }}
{% endif %} {{ mat.price_per_unit|eve_isk }}
{{ mat.total_price|eve_isk }}
Blueprints
{{ mat.name }} {{ mat.name }} {% if mat.is_used %} {% trans "Used" %} {% elif mat.is_corp_owned %} {% trans "Corp Owned" %} {% else %} {% trans "Unowned" %} {% endif %} {% if mat.has_bpo %} {% trans "BPO" %} {% endif %}
{% if mat.shortage > 0 %} {{ mat.corp_stock|default:0|intcomma }} {% else %} {{ mat.corp_stock|default:0|intcomma }} {% endif %} {% if mat.base_quantity and mat.base_quantity > mat.quantity %} {{ mat.base_quantity|intcomma }} {% else %} {{ mat.quantity|intcomma }} {% endif %} {{ mat.quantity|intcomma }} {% if mat.savings > 0 %}
-{{ mat.savings|intcomma }} {% endif %}
{% if mat.is_corp_owned %} 0.00 ISK {% else %} {{ mat.price_per_unit|eve_isk }} {% endif %} {% if mat.is_corp_owned %} 0.00 ISK {% else %} {{ mat.total_price|eve_isk }} {% endif %}
{% trans "Original Jita Price (Est.):" %} {{ original_price|eve_isk }}
{% trans "Estimated Total Materials Cost:" %} {{ total_bom_price|eve_isk }}
{% endif %} {% if perms.industry_reforged.industrialist_access or perms.industry_reforged.corp_access %}

{% trans "Recursive Production Tree" %}

{% trans "Processing Tree..." %}
{% if recursive_bom_tree %} {% for root_node in recursive_bom_tree %}
{% include "industry_reforged/partials/bom_tree_node.html" with node=root_node prefix=forloop.counter|stringformat:"s" %}
{% endfor %} {% else %}

{% trans "No production tree available." %}

{% endif %}
{% endif %} {% if perms.industry_reforged.corp_access and request.htmx %} {% trans "BOM Cost:" %} {{ total_bom_price|eve_isk_short }} {% endif %}