mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Bug fix for StockItem list API
- The wrong detail data was being set
This commit is contained in:
		| @@ -420,7 +420,7 @@ class StockList(generics.ListCreateAPIView): | ||||
|             # Now update each StockItem with the related StockLocation data | ||||
|             for stock_item in data: | ||||
|                 loc_id = stock_item['location'] | ||||
|                 stock_item['supplier_detail'] = location_map.get(loc_id, None) | ||||
|                 stock_item['location_detail'] = location_map.get(loc_id, None) | ||||
|  | ||||
|         """ | ||||
|         Determine the response type based on the request. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user