From 88882f9db81585138cf311746c77e60bd1ba3566 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Wed, 27 May 2026 17:48:30 +0100 Subject: [PATCH] Deleted date of delivery note dto --- PyroFetes/DTO/DeliveryNote/Request/CreateDeliveryNoteDto.cs | 2 -- .../Endpoints/DeliveryNotes/CreateDeliveryNoteEndpoint.cs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) 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,