initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using FluentValidation;
|
||||
|
||||
namespace Indotalent.Features.Sales.CreditNote.Cqrs;
|
||||
|
||||
public class UpdateCreditNoteValidator : AbstractValidator<UpdateCreditNoteRequest>
|
||||
{
|
||||
public UpdateCreditNoteValidator()
|
||||
{
|
||||
RuleFor(x => x.Id).NotEmpty();
|
||||
RuleFor(x => x.SalesReturnId).NotEmpty().WithMessage("Sales Return reference is required");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user