2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Updated SupplierPriceBreak page

This commit is contained in:
Oliver Walters
2019-04-17 00:48:01 +10:00
parent 150bc1e674
commit 52c3a63c61
5 changed files with 67 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<h3>Companies</h3>
<div id='button-toolbar'>
<h3><button style='float: right;' class="btn btn-success" id='new-company'>New Company</button></h3>
<button style='float: right;' class="btn btn-success" id='new-company'>New Company</button>
</div>
<table class='table table-striped' id='company-table' data-toolbar='#button-toolbar'>

View File

@ -44,10 +44,43 @@
<tr><td>Manufacturer</td><td>{{ part.manufacturer }}</td></tr>
<tr><td>MPN</td><td>{{ part.MPN }}</td></tr>
{% endif %}
{% if part.note %}
<tr><td>Note</td><td>{{ part.note }}</td></tr>
{% endif %}
<tr><th colspan='2'>Pricing</th></tr>
<tr><td>Single Price</td><td>{{ part.single_price }}</td></tr>
{% if part.multiple > 1 %}
<tr><td>Order Multiple</td><td>{{ part.multiple }}</td></tr>
{% endif %}
{% if part.base_cost > 0 %}
<tr><td>Base Price (Flat Fee)</td><td>{{ part.base_cost }}</td></tr>
{% endif %}
{% if part.minimum > 1 %}
<tr><td>Minimum Order Quantity</td><td>{{ part.minimum }}</td></tr>
{% endif %}
</table>
<br>
<h3>Price Breaks</h3>
<table class="table table-striped table-condensed">
<tr>
<th>Quantity</th>
<th>Price</th>
</tr>
{% for pb in part.price_breaks.all %}
<tr>
<td>{{ pb.quantity }}</td>
<td>{{ pb.cost }}</td>
</tr>
{% endfor %}
</table>
<div>
<button class='btn btn-primary' type='button'>New Price Break</button>
</div>
{% include 'modals.html' %}
{% endblock %}