feat(sales): add delivery note create DTOs closes #35
This commit is contained in:
parent
6d3ad6aef2
commit
f6bf3c61e8
12
Domain/Dtos/Sales/DeliveryNoteCreateItemRequest.cs
Normal file
12
Domain/Dtos/Sales/DeliveryNoteCreateItemRequest.cs
Normal file
@ -0,0 +1,12 @@
|
||||
namespace Domain.Dtos.Sales
|
||||
{
|
||||
public class DeliveryNoteCreateItemRequest
|
||||
{
|
||||
public byte OriginType { get; set; }
|
||||
public int? OriginId { get; set; }
|
||||
public int? QuoteDetailId { get; set; }
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public decimal Quantity { get; set; }
|
||||
public string? Notes { get; set; }
|
||||
}
|
||||
}
|
||||
13
Domain/Dtos/Sales/DeliveryNoteCreateRequest.cs
Normal file
13
Domain/Dtos/Sales/DeliveryNoteCreateRequest.cs
Normal file
@ -0,0 +1,13 @@
|
||||
namespace Domain.Dtos.Sales
|
||||
{
|
||||
public class DeliveryNoteCreateRequest
|
||||
{
|
||||
public string DeliveryNoteNumber { get; set; } = string.Empty;
|
||||
public int? QuoteId { get; set; }
|
||||
public DateTime IssueDate { get; set; }
|
||||
public int CustomerId { get; set; }
|
||||
public string? Observations { get; set; }
|
||||
public string? ExtraInfoJson { get; set; }
|
||||
public List<DeliveryNoteCreateItemRequest> Items { get; set; } = new();
|
||||
}
|
||||
}
|
||||
8
Domain/Dtos/Sales/DeliveryNoteCreateResponse.cs
Normal file
8
Domain/Dtos/Sales/DeliveryNoteCreateResponse.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace Domain.Dtos.Sales
|
||||
{
|
||||
public class DeliveryNoteCreateResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string DeliveryNoteNumber { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user