mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
StockItem serializer now includes the allocated quantity
This commit is contained in:
parent
d9698b10cc
commit
eb7b49784b
@ -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):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user