diff --git a/InvenTree/order/serializers.py b/InvenTree/order/serializers.py
index cffdbaec32..0dddece000 100644
--- a/InvenTree/order/serializers.py
+++ b/InvenTree/order/serializers.py
@@ -526,6 +526,7 @@ class SalesOrderAllocationSerializer(InvenTreeModelSerializer):
'order_detail',
'part',
'part_detail',
+ 'shipment',
]
diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html
index 0d5ab272d6..949c172e9e 100644
--- a/InvenTree/stock/templates/stock/item_base.html
+++ b/InvenTree/stock/templates/stock/item_base.html
@@ -252,7 +252,7 @@
{% object_link 'so-detail' allocation.line.order.id allocation.line.order as link %}
{% decimal allocation.quantity as qty %}
- {% blocktrans %}This stock item is allocated to Sales Order {{ link }} (Quantity: {{ qty }}){% endblocktrans %}
+ {% trans "This stock item is allocated to Sales Order" %} {{ link }} {% if qty < item.quantity %}({% trans "Quantity" %}: {{ qty }}){% endif %}
{% endfor %}
@@ -260,7 +260,7 @@
{% object_link 'build-detail' allocation.build.id allocation.build %}
{% decimal allocation.quantity as qty %}
- {% blocktrans %}This stock item is allocated to Build {{ link }} (Quantity: {{ qty }}){% endblocktrans %}
+ {% trans "This stock item is allocated to Build Order" %} {{ link }} {% if qty < item.quantity %}({% trans "Quantity" %}: {{ qty }}){% endif %}
{% endfor %}
diff --git a/InvenTree/templates/js/translated/stock.js b/InvenTree/templates/js/translated/stock.js
index 79fe19b120..0314fff107 100644
--- a/InvenTree/templates/js/translated/stock.js
+++ b/InvenTree/templates/js/translated/stock.js
@@ -1278,7 +1278,14 @@ function loadStockTable(table, options) {
}
if (row.allocated) {
- html += makeIconBadge('fa-bookmark', '{% trans "Stock item has been allocated" %}');
+
+ if (row.serial != null && row.quantity == 1) {
+ html += makeIconBadge('fa-bookmark icon-yellow', '{% trans "Serialized stock item has been allocated" %}');
+ } else if (row.allocated >= row.quantity) {
+ html += makeIconBadge('fa-bookmark icon-red', '{% trans "Stock item has been fully allocated" %}');
+ } else {
+ html += makeIconBadge('fa-bookmark', '{% trans "Stock item has been partially allocated" %}');
+ }
}
if (row.belongs_to) {