phronCare/Domain/Dtos/Sales/SalesDocumentDraftValidationDto.cs
leandro 10db654679
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (pull_request) Successful in 26m7s
feat(sales): add sales document draft review and validation close #74
2026-06-11 20:00:57 -03:00

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();
}
}