initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using FluentValidation;
|
||||
|
||||
namespace Indotalent.Features.Purchase.DebitNote.Cqrs;
|
||||
|
||||
public class CreateDebitNoteValidator : AbstractValidator<CreateDebitNoteRequest>
|
||||
{
|
||||
public CreateDebitNoteValidator()
|
||||
{
|
||||
RuleFor(x => x.DebitNoteDate).NotEmpty().WithMessage("Date is required");
|
||||
RuleFor(x => x.PurchaseReturnId).NotEmpty().WithMessage("Purchase Return reference is required");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user