{% extends "part/part_app_base.html" %} {% load static %} {% block content %} {% if part.active == False %}
This part is not active:
{% endif %} {% if part.is_template %}
This part is a template part.
It is not a real part, but real parts can be based on this template.
{% endif %} {% if part.variant_of %}
This part is a variant of {{ part.variant_of.full_name }}
{% endif %}

{{ part.full_name }}

{{ part.description }}

{% if part.is_template == False %} {% include "qr_button.html" %} {% if part.active %} {% if not part.virtual %} {% endif %} {% if part.purchaseable %} {% endif %} {% endif %} {% endif %} {% if not part.active %} {% endif %}

{% if part.IPN %} {% endif %} {% if part.URL %} {% endif %}
IPN {{ part.IPN }}
URL {{ part.URL }}
{% if not part.is_template %} {% if part.allocation_count > 0 %} {% endif %} {% if part.on_order > 0 %} {% endif %} {% endif %} {% if not part.is_template %} {% if part.assembly %} {% if part.quantity_being_built > 0 %} {% endif %} {% endif %} {% endif %}

Available Stock

{{ part.available_stock }} {{ part.units }}

In Stock {{ part.total_stock }}
Allocated {{ part.allocation_count }}
On Order {{ part.on_order }}
Build Status
Can Build {{ part.can_build }}
Underway {{ part.quantity_being_built }}

{% block details %} {% endblock %}
{% endblock %} {% block js_ready %} {{ block.super }} enableDragAndDrop( '#part-thumb', "{% url 'part-image' part.id %}", { label: 'image', success: function(data, status, xhr) { location.reload(); } } ); $("#show-qr-code").click(function() { launchModalForm( "{% url 'part-qr' part.id %}", { no_post: true, } ); }); $("#part-count").click(function() { launchModalForm("/stock/adjust/", { data: { action: "count", part: {{ part.id }}, reload: true, } }); }); $("#price-button").click(function() { launchModalForm( "{% url 'part-pricing' part.id %}", { submit_text: 'Calculate', } ); }); $("#toggle-starred").click(function() { toggleStar({ part: {{ part.id }}, user: {{ user.id }}, button: '#part-star-icon' }); }); $("#part-thumb").click(function() { launchModalForm( "{% url 'part-image' part.id %}", { reload: true } ); }); $("#part-edit").click(function() { launchModalForm( "{% url 'part-edit' part.id %}", { reload: true, } ); }); $("#part-order").click(function() { launchModalForm("/order/purchase-order/order-parts/", { data: { part: {{ part.id }}, }, }); }); $("#part-duplicate").click(function() { launchModalForm( "{% url 'part-duplicate' part.id %}", { follow: true, } ); }); {% if not part.active %} $("#part-delete").click(function() { launchModalForm( "{% url 'part-delete' part.id %}", { redirect: {% if part.category %}"{% url 'category-detail' part.category.id %}"{% else %}"{% url 'part-index' %}"{% endif %} } ); }); {% endif %} {% endblock %}