Added spec for see all documents order by desc
This commit is contained in:
@@ -9,6 +9,7 @@ public sealed class GetProductsUnderLimitSpec : Specification<Product>
|
||||
{
|
||||
Query
|
||||
.Include(x => x.WarehouseProducts)
|
||||
.Where(x => x.WarehouseProducts != null && x.WarehouseProducts.Sum(p => p.Quantity) < x.MinimalQuantity);
|
||||
.Where(x => x.WarehouseProducts != null && x.WarehouseProducts.Sum(p => p.Quantity) < x.MinimalQuantity
|
||||
&& !x.ProductDeliveries!.Any(d => d.DeliveryNote!.RealDeliveryDate == null));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user