diff --git a/PyroFetes/DTO/DeliveryNote/Request/CreateDeliveryNoteDto.cs b/PyroFetes/DTO/DeliveryNote/Request/CreateDeliveryNoteDto.cs index 42c4bb3..3dbde13 100644 --- a/PyroFetes/DTO/DeliveryNote/Request/CreateDeliveryNoteDto.cs +++ b/PyroFetes/DTO/DeliveryNote/Request/CreateDeliveryNoteDto.cs @@ -3,8 +3,6 @@ namespace PyroFetes.DTO.DeliveryNote.Request; public class CreateDeliveryNoteDto { public string? TrackingNumber { get; set; } - public DateOnly EstimateDeliveryDate { get; set; } - public DateOnly ExpeditionDate { get; set; } public int DelivererId { get; set; } public int SupplierId { get; set; } diff --git a/PyroFetes/Endpoints/DeliveryNotes/CreateDeliveryNoteEndpoint.cs b/PyroFetes/Endpoints/DeliveryNotes/CreateDeliveryNoteEndpoint.cs index 4781faa..36335bf 100644 --- a/PyroFetes/Endpoints/DeliveryNotes/CreateDeliveryNoteEndpoint.cs +++ b/PyroFetes/Endpoints/DeliveryNotes/CreateDeliveryNoteEndpoint.cs @@ -35,8 +35,8 @@ public class CreateDeliveryNoteEndpoint( DeliveryNote newDeliveryNote = new() { TrackingNumber = req.TrackingNumber, - EstimateDeliveryDate = req.EstimateDeliveryDate, - ExpeditionDate = req.ExpeditionDate, + EstimateDeliveryDate = DateOnly.FromDateTime(DateTime.Today).AddMonths(2), + ExpeditionDate = DateOnly.FromDateTime(DateTime.Today), DelivererId = deliverer.Id, Deliverer = deliverer, SupplierId = req.SupplierId,