phronCare/Domain/Dtos/Sales/SalesDocumentDraftValidationDto.cs

13 lines
422 B
C#
Raw Normal View History

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