{% 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
{{ part_revision.get_configuration_display }} {% 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.is_immutable %}
{% csrf_token %}
{% else %} editEdit {% endif %} {% if part_revision.configuration == 'D' or part_revision.configuration == 'I' %} {% if perms.bom.release_revision %} Release… {% endif %} {% endif %}
more_horiz
{% endif %}
{% elif perms.bom.create_part %} addCreate Revision {% endif %}
{% if part_revision %} {% include 'bom/components/revision-status.html' %} {% endif %} {% if proposals.changes %}
chat_bubble_outline {{ proposals.changes|length }} open change request{{ proposals.changes|length|pluralize }} touch{{ proposals.changes|length|pluralize:"es," }} this revision: {% for change in proposals.changes %} #{{ change.number }} {{ change.title }}{% if not forloop.last %}, {% endif %} {% endfor %}
{% 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

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

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

{% include 'bom/components/manufacturer-part-list.html' with manufacturer_parts=part.manufacturer_parts part_revision=part_revision profile=profile show_manufacturer=True %} {% for item in proposals.seller_items %}

Proposed {{ item.summary }} Change #{{ item.change.number }}

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