Deleted date of delivery note dto
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user