Separate allocation counters

This commit is contained in:
Oliver Walters 2020-05-02 20:29:20 +10:00
parent 26f0338f1d
commit b39283a18f

View File

@ -108,11 +108,18 @@
<td>{% include "part/stock_count.html" %}</td> <td>{% include "part/stock_count.html" %}</td>
</tr> </tr>
{% if not part.is_template %} {% if not part.is_template %}
{% if part.allocation_count > 0 %} {% if part.build_order_allocation_count > 0 %}
<tr> <tr>
<td><span class='fas fa-dolly'></span></td> <td><span class='fas fa-dolly'></span></td>
<td>{% trans "Allocated" %}</td> <td>{% trans "Allocated to Build Orders" %}</td>
<td>{% decimal part.allocation_count %}</td> <td>{% decimal part.build_order_allocation_count %}</td>
</tr>
{% endif %}
{% if part.sales_order_allocation_count > 0 %}
<tr>
<td><span class='fas fa-dolly'></span></td>
<td>{% trans "Allocated to Sales Orders" %}</td>
<td>{% decimal part.sales_order_allocation_count %}</td>
</tr> </tr>
{% endif %} {% endif %}
{% if part.on_order > 0 %} {% if part.on_order > 0 %}