{% extends "base.html" %} {% load static %} {% block content %} {% include "part/cat_link.html" with category=part.category %}
{{ part.description }}
{% endif %} {% if part.IPN %}In Stock | {% if part.stock == 0 %} {{ part.total_stock }} {% elif part.stock < part.minimum_stock %} {{ part.total_stock }} {% else %} {{ part.total_stock }} {% endif %} | |
Can Build | {% if part.can_build == 0 %} 0 {% else %} {{ part.can_build }} {% endif %} | |
Underway | {{ part.quantity_being_built }} | |
Allocated | {% if part.allocation_count > part.total_stock %}{{ part.allocation_count }} | {% else %}{{ part.allocation_count }} | {% endif %}