mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 03:00:54 +00:00
Adds "stock value" calculation to stock table (#4471)
* Add part pricing data to stockitem list serializer * Add "stock value" column to stock list table
This commit is contained in:
@ -165,6 +165,8 @@ class StockItemSerializer(InvenTree.serializers.InvenTreeModelSerializer):
|
||||
queryset = queryset.prefetch_related(
|
||||
'sales_order',
|
||||
'purchase_order',
|
||||
'part',
|
||||
'part__pricing_data',
|
||||
)
|
||||
|
||||
# Annotate the queryset with the total allocated to sales orders
|
||||
|
Reference in New Issue
Block a user