mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-14 15:41:10 +00:00
Add a tab for part sale prices
This commit is contained in:
28
InvenTree/part/templates/part/sale_prices.html
Normal file
28
InvenTree/part/templates/part/sale_prices.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{% extends "part/part_base.html" %}
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block details %}
|
||||
|
||||
{% include 'part/tabs.html' with tab='sales-prices' %}
|
||||
|
||||
<h4>{% trans "Sale Price" %}</h4>
|
||||
<hr>
|
||||
|
||||
<div id='price-break-bar' class='btn-group'>
|
||||
<button class='btn btn-primary' id='new-price-break' type='button'>{% trans "Add Price Break" %}</button>
|
||||
</div>
|
||||
|
||||
<table class='table table-striped table-condensed' id='price-break-table' data-toolbar='#price-break-toolbar'>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block js_ready %}
|
||||
{{ block.super }}
|
||||
|
||||
$('#new-price-break').click(function() {
|
||||
// TODO
|
||||
})
|
||||
|
||||
{% endblock %}
|
@@ -46,6 +46,9 @@
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if part.salable %}
|
||||
<li {% if tab == 'sales-prices' %}class='active'{% endif %}>
|
||||
<a href="{% url 'part-sale-prices' part.id %}">{% trans "Sale Price" %}</a>
|
||||
</li>
|
||||
<li{% ifequal tab 'sales-orders' %} class='active'{% endifequal %}>
|
||||
<a href="{% url 'part-sales-orders' part.id %}">{% trans "Sales Orders" %} <span class='badge'>{{ part.sales_orders|length }}</span></a>
|
||||
</li>
|
||||
|
Reference in New Issue
Block a user