From fdaead91ff5a0ccd71b93f1afa109be96f7e4fbc Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Tue, 26 May 2026 12:01:09 +0100 Subject: [PATCH] Changed display of delivery note --- .../Specifications/DeliveryNotes/GetAllDeliveryNoteSpec.cs | 4 ++-- .../DeliveryNotes/GetAllDeliveryNotesByRealDateSpec.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PyroFetes/Specifications/DeliveryNotes/GetAllDeliveryNoteSpec.cs b/PyroFetes/Specifications/DeliveryNotes/GetAllDeliveryNoteSpec.cs index fb67cf65..83b85ec7 100644 --- a/PyroFetes/Specifications/DeliveryNotes/GetAllDeliveryNoteSpec.cs +++ b/PyroFetes/Specifications/DeliveryNotes/GetAllDeliveryNoteSpec.cs @@ -11,7 +11,7 @@ public class GetAllDeliveryNoteSpec : Specification .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); } } \ No newline at end of file diff --git a/PyroFetes/Specifications/DeliveryNotes/GetAllDeliveryNotesByRealDateSpec.cs b/PyroFetes/Specifications/DeliveryNotes/GetAllDeliveryNotesByRealDateSpec.cs index 041842f6..46feb4c2 100644 --- a/PyroFetes/Specifications/DeliveryNotes/GetAllDeliveryNotesByRealDateSpec.cs +++ b/PyroFetes/Specifications/DeliveryNotes/GetAllDeliveryNotesByRealDateSpec.cs @@ -12,6 +12,6 @@ public class GetAllDeliveryNotesByRealDateSpec : Specification .Include(x => x.ProductDeliveries)! .ThenInclude(x => x.Product) .Where(x => x.RealDeliveryDate == null) - .OrderByDescending(x => x.RealDeliveryDate); + .OrderByDescending(x => x.ExpeditionDate); } } \ No newline at end of file