forked from sanchezvem/pyrofetes-backend
Changed display of delivery note
This commit is contained in:
@@ -11,7 +11,7 @@ public class GetAllDeliveryNoteSpec : Specification<DeliveryNote>
|
||||
.Include(x => x.Deliverer)
|
||||
.Include(x => x.ProductDeliveries)!
|
||||
.ThenInclude(x => x.Product)
|
||||
.Where(x => true)
|
||||
.OrderByDescending(x => x.ExpeditionDate);
|
||||
.OrderBy(x => x.RealDeliveryDate)
|
||||
.ThenByDescending(x => x.ExpeditionDate);
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,6 @@ public class GetAllDeliveryNotesByRealDateSpec : Specification<DeliveryNote>
|
||||
.Include(x => x.ProductDeliveries)!
|
||||
.ThenInclude(x => x.Product)
|
||||
.Where(x => x.RealDeliveryDate == null)
|
||||
.OrderByDescending(x => x.RealDeliveryDate);
|
||||
.OrderByDescending(x => x.ExpeditionDate);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user