All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (pull_request) Successful in 26m7s
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();
|
|
}
|
|
}
|