diff --git a/src/CMSMicroservice.Application/InventoryItemCQ/Queries/GetLowStockItems/GetLowStockItemsQueryHandler.cs b/src/CMSMicroservice.Application/InventoryItemCQ/Queries/GetLowStockItems/GetLowStockItemsQueryHandler.cs index 7b22672..531f9a2 100644 --- a/src/CMSMicroservice.Application/InventoryItemCQ/Queries/GetLowStockItems/GetLowStockItemsQueryHandler.cs +++ b/src/CMSMicroservice.Application/InventoryItemCQ/Queries/GetLowStockItems/GetLowStockItemsQueryHandler.cs @@ -26,7 +26,7 @@ public class GetLowStockItemsQueryHandler : IRequestHandler i.AvailableQuantity) + .OrderBy(i => i.Quantity - i.ReservedQuantity) .Take(request.Count) .Select(i => new LowStockItemDto { @@ -39,7 +39,7 @@ public class GetLowStockItemsQueryHandler : IRequestHandler