{% extends 'bom/bom-base.html' %} {% load static %} {% load djmoney %} {% block head-title %}{{ part.full_part_number }}{% if part_revision %} {{ part_revision.synopsis }}{% endif %}{% endblock %} {% block head %} {% endblock %} {% block content %} {% include 'bom/bom-action-btn.html' with profile=profile %}
{% if part.image %} {% elif perms.bom.edit_part %} add_a_photo Add photo {% else %}
image
{% endif %}
Part

{{ part.full_part_number }}

{% if part_revision %}
{{ part_revision.synopsis }}
{% endif %}
{% if organization.number_scheme == 'S' and part.number_class %}Class {{ part.number_class.code }}{% endif %} {% if part.primary_manufacturer_part.manufacturer_part_number %}{{ part.primary_manufacturer_part.manufacturer.name }} {{ part.primary_manufacturer_part.manufacturer_part_number }}{% endif %}
{% if part_revision %} Revision
Rev {{ part_revision.revision }} · {{ part_revision.get_configuration_display }}arrow_drop_down {% if perms.bom.edit_part %} {% if part_revision.is_immutable and latest_revision.id != part_revision.id and latest_revision.configuration == 'D' %} Open rev {{ latest_revision.revision }} {% elif part_revision.configuration == 'I' %} {% elif part_revision.is_immutable %}
{% csrf_token %}
{% else %} editEdit {% endif %} {% if part_revision.configuration == 'D' or part_revision.configuration == 'I' %} {% if perms.bom.release_revision and not change_order %} Release… {% endif %} {% endif %}
more_horiz
{% endif %}
{% elif perms.bom.create_part %} addCreate Revision {% endif %}
{% if part_revision and not change_order %} {% include 'bom/components/revision-status.html' %} {% endif %} {% if change_order %}
fact_check Rev {{ part_revision.revision }} is in change order #{{ change_order.number }}, {{ change_order.title }}. {% if change_order.status == 'open' %}It is under review and locked until the change order is approved or sent back. {% elif change_order.status == 'rejected' %}The change order was sent back: edit this revision, then submit the change order again. {% else %}Edit this revision, then submit the change order for review.{% endif %} Open change order #{{ change_order.number }}
{% endif %}

Overview

{% if part_revision %}
Unit cost at {{ qty }}
{{ indented_bom.unit_cost|default_if_none:'-' }}
Subparts without a cost: {{ indented_bom.missing_item_costs }}
{% csrf_token %} {{ part_info_form.quantity }}
Order total with MOQs
{{ indented_bom.out_of_pocket_cost|default_if_none:'-' }}
NRE: {{ indented_bom.nre|default_if_none:'-' }}
Primary manufacturer part {% if part.primary_manufacturer_part %} {% else %}
None yet
{% endif %} {% if part.primary_manufacturer_part.manufacturer_part_number %} {% endif %} {% if perms.bom.edit_part and not part_revision.is_immutable %} {% endif %}
{% if sourcing_parts %} {% endif %}
Details
{% if organization.number_scheme == 'S' %}
Class
{{ part.number_class }}
{% endif %}
Description
{{ part_revision.description|default:'-' }}
{% for property in part_revision.properties.all %}
{{ property.property_definition.name }}
{{ property.value_raw }}{% if property.unit_definition %} {{ property.unit_definition.symbol }}{% endif %}
{% endfor %}
State
{{ part_revision.get_configuration_display }} as of
{% endif %}

Bill of Materials

{% include 'bom/components/bom-indented.html' with order_by=order_by bom_items=indented_bom.parts part=part part_revision=part_revision profile=profile layout_toggle=True %}

Where Used

This revisionAll revisions
{% include 'bom/components/where-used-tree.html' with where_used_items=where_used.items table_id='where-used-revision-table' %}

History

{% if history_entries %}
{% for entry in history_entries %} {% with change=entry.change %} {% endwith %} {% endfor %}
WhenWhoWhat
{{ change.resolved_at|date:"M j, Y H:i" }} {% if change.api_token %} {% if change.agent_client %}{{ change.agent_client }} · {% endif %}{{ change.api_token.name }} for {{ change.author.username }} {% else %} {{ change.author.username }} {% endif %} {% if change.number %} {{ change.title }} #{{ change.number }} {% else %} {{ change.title }} {% endif %} {% if entry.diff_revision_ids %} · Compare {% endif %}
{% else %}

No history yet. Edits, new revisions and releases will appear here.

{% endif %}

Sourcing

{% if manufacturer_parts %} {% if perms.bom.manage_sourcing %} {% endif %} {% include 'bom/components/manufacturer-part-list.html' with manufacturer_parts=manufacturer_parts part_revision=part_revision profile=profile show_manufacturer=True %} {% else %}
storefront

No manufacturer parts yet

Add the manufacturer part numbers this part can be bought as, then add vendors and prices to each.

{% if perms.bom.manage_sourcing %} addAdd manufacturer part {% endif %}
{% endif %}
{% if perms.bom.edit_part %} {% endif %} {% endblock %} {% block bom-script %} {% endblock bom-script %}