{% extends "part/part_base.html" %} {% load static %} {% block details %} {% include 'part/tabs.html' with tab='detail' %}

Part Details


{% if part.IPN %} {% endif %} {% if part.revision %} {% endif %} {% if part.variant_of %} {% endif %} {% if part.keywords %} {% endif %} {% if part.URL %} {% endif %} {% if part.default_location %} {% endif %} {% if part.default_supplier %} {% endif %} {% if part.minimum_stock > 0 %} {% endif %}
Part name {{ part.name }}
IPN {{ part.IPN }}
Revision {{ part.revision }}
Description {{ part.description }}
Variant Of {{ part.variant_of.full_name }}
Keywords {{ part.keywords }}
URL {{ part.URL }}
Category {% if part.category %} {{ part.category.pathstring }} {% endif %}
Default Location {{ part.default_location.pathstring }}
Default Supplier {{ part.default_supplier.supplier.name }} | {{ part.default_supplier.SKU }}
Units {{ part.units }}
Minimum Stock {{ part.minimum_stock }}
{% if part.virtual %} {% else %} {% endif %} {% if part.assembly %} {% else %} {% endif %} {% if part.component %} {% else %} {% endif %} {% if part.trackable %} {% else %} {% endif %} {% if part.purchaseable %} {% else %} {% endif %} {% if 0 %} {% if part.salable %} {% else %} {% endif %} {% endif %}
Virtual {% include "slide.html" with state=part.virtual field='virtual' %}Part is virtual (not a physical part)Part is not a virtual part
Assembly {% include "slide.html" with state=part.assembly field='assembly' %}Part can be assembled from other partsPart cannot be assembled from other parts
Component {% include "slide.html" with state=part.component field='component' %}Part can be used in assembliesPart cannot be used in assemblies
Trackable {% include "slide.html" with state=part.trackable field='trackable' %}Part stock is tracked by serial numberPart stock is not tracked by serial number
Purchaseable {% include "slide.html" with state=part.purchaseable field='purchaseable' %}Part can be purchased from external suppliersPart can be purchased from external suppliers
Sellable {% include "slide.html" with state=part.salable field='salable' %}Part can be sold to customersPart cannot be sold to customers
{% if part.notes %}
Notes
{{ part.notes }}
{% endif %} {% endblock %} {% block js_load %} {{ block.super }} {% endblock %} {% block js_ready %} {{ block.super }} $(".slidey").change(function() { var field = $(this).attr('field'); var checked = $(this).prop('checked'); var data = {}; data[field] = checked; // Update the particular field inventreePut("/api/part/{{ part.id }}/", data, { method: 'PATCH', reloadOnSuccess: true, }, ); }); $('#activate-part').click(function() { showQuestionDialog( 'Activate Part?', 'Are you sure you wish to reactivate {{ part.full_name }}?', { accept_text: 'Activate', accept: function() { inventreePut( "{% url 'api-part-detail' part.id %}", { active: true, }, { method: 'PATCH', reloadOnSuccess: true, } ); } }, ); }); $('#deactivate-part').click(function() { showQuestionDialog( 'Deactivate Part?', `Are you sure you wish to deactivate {{ part.full_name }}?
`, { accept_text: 'Deactivate', accept: function() { inventreePut( "{% url 'api-part-detail' part.id %}", { active: false, }, { method: 'PATCH', reloadOnSuccess: true, } ); } } ); }); {% endblock %}