Deleted date of delivery note dto
This commit is contained in:
@@ -3,8 +3,6 @@ namespace PyroFetes.DTO.DeliveryNote.Request;
|
|||||||
public class CreateDeliveryNoteDto
|
public class CreateDeliveryNoteDto
|
||||||
{
|
{
|
||||||
public string? TrackingNumber { get; set; }
|
public string? TrackingNumber { get; set; }
|
||||||
public DateOnly EstimateDeliveryDate { get; set; }
|
|
||||||
public DateOnly ExpeditionDate { get; set; }
|
|
||||||
|
|
||||||
public int DelivererId { get; set; }
|
public int DelivererId { get; set; }
|
||||||
public int SupplierId { get; set; }
|
public int SupplierId { get; set; }
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ public class CreateDeliveryNoteEndpoint(
|
|||||||
DeliveryNote newDeliveryNote = new()
|
DeliveryNote newDeliveryNote = new()
|
||||||
{
|
{
|
||||||
TrackingNumber = req.TrackingNumber,
|
TrackingNumber = req.TrackingNumber,
|
||||||
EstimateDeliveryDate = req.EstimateDeliveryDate,
|
EstimateDeliveryDate = DateOnly.FromDateTime(DateTime.Today).AddMonths(2),
|
||||||
ExpeditionDate = req.ExpeditionDate,
|
ExpeditionDate = DateOnly.FromDateTime(DateTime.Today),
|
||||||
DelivererId = deliverer.Id,
|
DelivererId = deliverer.Id,
|
||||||
Deliverer = deliverer,
|
Deliverer = deliverer,
|
||||||
SupplierId = req.SupplierId,
|
SupplierId = req.SupplierId,
|
||||||
|
|||||||
Reference in New Issue
Block a user