You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
753 B

using FluentValidation;
namespace Win_in.Sfs.Scp.WebApi;
public class CreatePurchaseOrderDetailValidator : AbstractValidator<PurchaseOrderDetailCreateDTO>
{
public CreatePurchaseOrderDetailValidator()
{
RuleFor(q => q.PoNumber).NotEmpty().MaximumLength(64);
RuleFor(q => q.PoLine).NotEmpty().MaximumLength(64);
RuleFor(q => q.PartCode).NotEmpty().MaximumLength(64);
RuleFor(q => q.Uom).NotEmpty().MaximumLength(64);
RuleFor(q => q.OrderQty).NotNull();
RuleFor(q => q.StdPackQty).NotNull();
RuleFor(q => q.SupplierPackConvertRate);
RuleFor(q => q.IsConsignment).NotNull();
RuleFor(q => q.LineStatus).NotNull();
RuleFor(q => q.Remark).MaximumLength(4096);
}
}