Added new endpoint to manage deliveries
This commit is contained in:
@@ -11,6 +11,7 @@ public class GetAllDeliveryNoteSpec : Specification<DeliveryNote>
|
||||
.Include(x => x.Deliverer)
|
||||
.Include(x => x.ProductDeliveries)!
|
||||
.ThenInclude(x => x.Product)
|
||||
.Where(x => true);
|
||||
.Where(x => true)
|
||||
.OrderByDescending(x => x.ExpeditionDate);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using Ardalis.Specification;
|
||||
using PyroFetes.Models;
|
||||
|
||||
namespace PyroFetes.Specifications.DeliveryNotes;
|
||||
|
||||
public class GetAllDeliveryNotesByRealDateSpec : Specification<DeliveryNote>
|
||||
{
|
||||
public GetAllDeliveryNotesByRealDateSpec()
|
||||
{
|
||||
Query
|
||||
.Include(x => x.Deliverer)
|
||||
.Include(x => x.ProductDeliveries)!
|
||||
.ThenInclude(x => x.Product)
|
||||
.Where(x => x.RealDeliveryDate == null)
|
||||
.OrderByDescending(x => x.RealDeliveryDate);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user