From eb7b49784b2a8b404a5e45ca8b7d4ff16eb5fecc Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 22 Apr 2020 15:24:11 +1000 Subject: [PATCH] StockItem serializer now includes the allocated quantity --- InvenTree/stock/serializers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/stock/serializers.py b/InvenTree/stock/serializers.py index a2fbd5bb6a..44b03daf2a 100644 --- a/InvenTree/stock/serializers.py +++ b/InvenTree/stock/serializers.py @@ -92,7 +92,8 @@ class StockItemSerializer(InvenTreeModelSerializer): tracking_items = serializers.IntegerField(source='tracking_info_count', read_only=True) - allocated = serializers.BooleanField(source='is_allocated', read_only=True) + quantity = serializers.FloatField() + allocated = serializers.FloatField(source='allocation_count', read_only=True) def __init__(self, *args, **kwargs):