mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Pack quantity improvements (#3661)
* Specify serializer label * Add units to part grid view * improve display of stock units in part table * Add units display to stock on part page * Display units in supplier part table * Simplify stock quantity display in stock table
This commit is contained in:
		@@ -198,14 +198,14 @@
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td><span class='fas fa-flag'></span></td>
 | 
			
		||||
            <td>{% trans "Minimum Stock" %}</td>
 | 
			
		||||
            <td>{{ part.minimum_stock }}</td>
 | 
			
		||||
            <td>{{ part.minimum_stock }} {{ part.units }}</td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        {% if on_order > 0 %}
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td><span class='fas fa-shopping-cart'></span></td>
 | 
			
		||||
            <td>{% trans "On Order" %}</td>
 | 
			
		||||
            <td>{% decimal on_order %}</td>
 | 
			
		||||
            <td>{% decimal on_order %} {{ part.units }}</td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        {% if part.component %}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
{% load inventree_extras %}
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
 | 
			
		||||
{% decimal total_stock %}
 | 
			
		||||
{% decimal total_stock %} {{ part.units }}
 | 
			
		||||
 | 
			
		||||
{% if total_stock == 0 %}
 | 
			
		||||
<span class='badge badge-right rounded-pill bg-danger'>{% trans "No Stock" %}</span>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user