{% extends "base.html" %}
{% load static %}
{% block page_title %}
InvenTree | {{ company.name }} - Parts
{% endblock %}
{% block content %}
Supplier Part Details
Internal Part |
{% if part.part %}
{{ part.part.full_name }}
{% endif %}
|
Supplier | {{ part.supplier.name }} |
SKU | {{ part.SKU }} |
{% if part.URL %}
URL | {{ part.URL }} |
{% endif %}
{% if part.description %}
Description | {{ part.description }} |
{% endif %}
{% if part.manufacturer %}
Manufacturer | {{ part.manufacturer }} |
MPN | {{ part.MPN }} |
{% endif %}
{% if part.note %}
Note | {{ part.note }} |
{% endif %}
Pricing Information
Order Multiple | {{ part.multiple }} |
{% if part.base_cost > 0 %}
Base Price (Flat Fee) | {{ part.base_cost }} |
{% endif %}
Price Breaks |
|
Quantity |
Price |
{% if part.price_breaks.all %}
{% for pb in part.price_breaks.all %}
{{ pb.quantity }} |
{% if pb.currency %}{{ pb.currency.symbol }}{% endif %}
{{ pb.cost }}
{% if pb.currency %}{{ pb.currency.suffix }}{% endif %}
|
{% endfor %}
{% else %}
No price breaks have been added for this part
|
{% endif %}
Purchase Orders
{% include "order/po_table.html" with orders=part.purchase_orders %}
{% endblock %}
{% block js_ready %}
{{ block.super }}
$('#edit-part').click(function () {
launchModalForm(
"{% url 'supplier-part-edit' part.id %}",
{
reload: true
}
);
});
$('#delete-part').click(function() {
launchModalForm(
"{% url 'supplier-part-delete' part.id %}",
{
redirect: "{% url 'company-index' %}"
}
);
});
$('#new-price-break').click(function() {
launchModalForm("{% url 'price-break-create' %}",
{
reload: true,
data: {
part: {{ part.id }},
}
}
);
});
$('.pb-edit-button').click(function() {
var button = $(this);
launchModalForm(button.attr('url'),
{
reload: true,
}
);
});
$('.pb-delete-button').click(function() {
var button = $(this);
launchModalForm(button.attr('url'),
{
reload: true,
}
);
});
{% endblock %}