mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Hide units when empty
This commit is contained in:
parent
b43d6a2ad4
commit
b22b82877d
@ -97,11 +97,13 @@
|
||||
</a></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if part.units %}
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><b>{% trans "Units" %}</b></td>
|
||||
<td>{{ part.units }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if part.minimum_stock > 0 %}
|
||||
<tr>
|
||||
<td><span class='fas fa-greater-than-equal'></span></td>
|
||||
|
@ -119,7 +119,7 @@
|
||||
<td>
|
||||
<h4>{% trans "Available Stock" %}</h4>
|
||||
</td>
|
||||
<td><h4>{% decimal part.available_stock %} {{ part.units }}</h4></td>
|
||||
<td><h4>{% decimal part.available_stock %}{% if part.units %} {{ part.units }}{% endif %}</h4></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class='fas fa-map-marker-alt'></span></td>
|
||||
|
Loading…
Reference in New Issue
Block a user