diff --git a/InvenTree/part/templates/part/tabs.html b/InvenTree/part/templates/part/tabs.html
index ecec2796d6..82d727eeb3 100644
--- a/InvenTree/part/templates/part/tabs.html
+++ b/InvenTree/part/templates/part/tabs.html
@@ -18,7 +18,7 @@
{% trans "Stock" %} {% decimal part.total_stock %}
{% endif %}
- {% if part.component or part.used_in_count > 0 %}
+ {% if part.component or part.salable or part.used_in_count > 0 %}
{% trans "Allocated" %} {% decimal part.allocation_count %}
diff --git a/InvenTree/plugins/barcode/barcode.py b/InvenTree/plugins/barcode/barcode.py
index b8084171fd..94a6c34df4 100644
--- a/InvenTree/plugins/barcode/barcode.py
+++ b/InvenTree/plugins/barcode/barcode.py
@@ -74,6 +74,6 @@ class BarcodePlugin(plugin.InvenTreePlugin):
Use the existing serializer to do this
"""
- serializer = StockItemSerializer(item, part_detail=True, location_detail=True, supplier_detail=True)
+ serializer = StockItemSerializer(item, part_detail=True, location_detail=True, supplier_part_detail=True)
return serializer.data
diff --git a/InvenTree/stock/serializers.py b/InvenTree/stock/serializers.py
index e4d602ec11..91d9e03016 100644
--- a/InvenTree/stock/serializers.py
+++ b/InvenTree/stock/serializers.py
@@ -104,10 +104,10 @@ class StockItemSerializer(InvenTreeModelSerializer):
location_detail = LocationBriefSerializer(source='location', many=False, read_only=True)
supplier_part_detail = SupplierPartSerializer(source='supplier_part', many=False, read_only=True)
- tracking_items = serializers.IntegerField()
+ tracking_items = serializers.IntegerField(source='tracking_info_count')
quantity = serializers.FloatField()
- allocated = serializers.FloatField()
+ allocated = serializers.FloatField(source='allocation_count')
required_tests = serializers.IntegerField(source='required_test_count', read_only=True)