13 lines
422 B
C#
13 lines
422 B
C#
|
|
namespace Domain.Dtos.Sales
|
||
|
|
{
|
||
|
|
public class SalesDocumentDraftValidationDto
|
||
|
|
{
|
||
|
|
public bool HasDetails { get; set; }
|
||
|
|
public bool HasValidAmounts { get; set; }
|
||
|
|
public bool HasCustomer { get; set; }
|
||
|
|
public bool IsDraft { get; set; }
|
||
|
|
public bool IsValid => HasDetails && HasValidAmounts && HasCustomer && IsDraft;
|
||
|
|
public List<string> Errors { get; set; } = new();
|
||
|
|
}
|
||
|
|
}
|