Deleted date of delivery note dto

This commit is contained in:
2026-05-27 17:48:30 +01:00
parent 6339fbdb8c
commit 88882f9db8
2 changed files with 2 additions and 4 deletions
@@ -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; }
@@ -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,