mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
re-layouting tables
This commit is contained in:
parent
25681fb805
commit
d5b2bfedbc
@ -1,6 +1,7 @@
|
|||||||
{% extends "part/part_base.html" %}
|
{% extends "part/part_base.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load crispy_forms_tags %}
|
||||||
{% load inventree_extras %}
|
{% load inventree_extras %}
|
||||||
|
|
||||||
{% block menubar %}
|
{% block menubar %}
|
||||||
@ -12,96 +13,94 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block details %}
|
{% block details %}
|
||||||
|
{% settings_value "INVENTREE_DEFAULT_CURRENCY" as currency %}
|
||||||
|
|
||||||
<form method="post" action='' class='js-modal-form' enctype="multipart/form-data">
|
{% crispy form %}
|
||||||
{% csrf_token %}
|
|
||||||
{% load crispy_forms_tags %}
|
|
||||||
{% crispy form %}
|
|
||||||
</form>
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row"><div class="col col-md-6">
|
||||||
|
<h4>{% trans "Pricing ranges" %}</h4>
|
||||||
|
<table class='table table-striped table-condensed'>
|
||||||
{% if part.supplier_count > 0 %}
|
{% if part.supplier_count > 0 %}
|
||||||
<h4>{% trans 'Supplier Pricing' %}</h4>
|
|
||||||
<table class='table table-striped table-condensed table-price-three'>
|
|
||||||
{% if min_total_buy_price %}
|
{% if min_total_buy_price %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>{% trans 'Unit Cost' %}</b></td>
|
<td><b>{% trans 'Supplier Pricing' %}</b></td>
|
||||||
<td>Min: {% include "price.html" with price=min_unit_buy_price %}</td>
|
<td>{% trans 'Unit Cost' %}</td>
|
||||||
<td>Max: {% include "price.html" with price=max_unit_buy_price %}</td>
|
<td>Min: {% include "price.html" with price=min_unit_buy_price %}</td>
|
||||||
</tr>
|
<td>Max: {% include "price.html" with price=max_unit_buy_price %}</td>
|
||||||
{% if quantity > 1 %}
|
</tr>
|
||||||
<tr>
|
{% if quantity > 1 %}
|
||||||
<td><b>{% trans 'Total Cost' %}</b></td>
|
<tr>
|
||||||
<td>Min: {% include "price.html" with price=min_total_buy_price %}</td>
|
<td></td>
|
||||||
<td>Max: {% include "price.html" with price=max_total_buy_price %}</td>
|
<td>{% trans 'Total Cost' %}</td>
|
||||||
</tr>
|
<td>Min: {% include "price.html" with price=min_total_buy_price %}</td>
|
||||||
{% endif %}
|
<td>Max: {% include "price.html" with price=max_total_buy_price %}</td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan='3'>
|
<td colspan='4'>
|
||||||
<span class='warning-msg'><i>{% trans 'No supplier pricing available' %}</i></span>
|
<span class='warning-msg'><i>{% trans 'No supplier pricing available' %}</i></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</table>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if part.bom_count > 0 %}
|
{% if part.bom_count > 0 %}
|
||||||
<h4>{% trans 'BOM Pricing' %}</h4>
|
|
||||||
<table class='table table-striped table-condensed table-price-three'>
|
|
||||||
{% if min_total_bom_price %}
|
{% if min_total_bom_price %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>{% trans 'Unit Cost' %}</b></td>
|
<td><b>{% trans 'BOM Pricing' %}</b></td>
|
||||||
<td>Min: {% include "price.html" with price=min_unit_bom_price %}</td>
|
<td>{% trans 'Unit Cost' %}</td>
|
||||||
<td>Max: {% include "price.html" with price=max_unit_bom_price %}</td>
|
<td>Min: {% include "price.html" with price=min_unit_bom_price %}</td>
|
||||||
</tr>
|
<td>Max: {% include "price.html" with price=max_unit_bom_price %}</td>
|
||||||
{% if quantity > 1 %}
|
</tr>
|
||||||
<tr>
|
{% if quantity > 1 %}
|
||||||
<td><b>{% trans 'Total Cost' %}</b></td>
|
<tr>
|
||||||
<td>Min: {% include "price.html" with price=min_total_bom_price %}</td>
|
<td></td>
|
||||||
<td>Max: {% include "price.html" with price=max_total_bom_price %}</td>
|
<td>{% trans 'Total Cost' %}</td>
|
||||||
</tr>
|
<td>Min: {% include "price.html" with price=min_total_bom_price %}</td>
|
||||||
{% endif %}
|
<td>Max: {% include "price.html" with price=max_total_bom_price %}</td>
|
||||||
{% if part.has_complete_bom_pricing == False %}
|
</tr>
|
||||||
<tr>
|
{% endif %}
|
||||||
<td colspan='3'>
|
{% if part.has_complete_bom_pricing == False %}
|
||||||
<span class='warning-msg'><i>{% trans 'Note: BOM pricing is incomplete for this part' %}</i></span>
|
<tr>
|
||||||
</td>
|
<td colspan='4'>
|
||||||
</tr>
|
<span class='warning-msg'><i>{% trans 'Note: BOM pricing is incomplete for this part' %}</i></span>
|
||||||
{% endif %}
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan='3'>
|
<td colspan='4'>
|
||||||
<span class='warning-msg'><i>{% trans 'No BOM pricing available' %}</i></span>
|
<span class='warning-msg'><i>{% trans 'No BOM pricing available' %}</i></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</table>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if total_part_price %}
|
{% if total_part_price %}
|
||||||
<h4>{% trans 'Sale Price' %}</h4>
|
<tr>
|
||||||
<table class='table table-striped table-condensed table-price-two'>
|
<td><b>{% trans 'Sale Price' %}</b></td>
|
||||||
<tr>
|
<td>{% trans 'Unit Cost' %}</td>
|
||||||
<td><b>{% trans 'Unit Cost' %}</b></td>
|
<td colspan='2'>{% include "price.html" with price=unit_part_price %}</td>
|
||||||
<td>{% include "price.html" with price=unit_part_price %}</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td></td>
|
||||||
<td><b>{% trans 'Total Cost' %}</b></td>
|
<td>{% trans 'Total Cost' %}</td>
|
||||||
<td>{% include "price.html" with price=total_part_price %}</td>
|
<td colspan='2'>{% include "price.html" with price=total_part_price %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</table>
|
||||||
|
|
||||||
{% if min_unit_buy_price or min_unit_bom_price %}
|
{% if min_unit_buy_price or min_unit_bom_price %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class='alert alert-danger alert-block'>
|
<div class='alert alert-danger alert-block'>
|
||||||
{% trans 'No pricing information is available for this part.' %}
|
{% trans 'No pricing information is available for this part.' %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<hr>
|
</div></div>
|
||||||
|
|
||||||
{% if price_history %}
|
{% if price_history %}
|
||||||
|
<hr>
|
||||||
<h4>{% trans 'Stock Pricing' %}</h4>
|
<h4>{% trans 'Stock Pricing' %}</h4>
|
||||||
{% if price_history|length > 1 %}
|
{% if price_history|length > 1 %}
|
||||||
<div style="max-width: 99%; min-height: 300px">
|
<div style="max-width: 99%; min-height: 300px">
|
||||||
|
Loading…
Reference in New Issue
Block a user