Files
2026-07-21 14:28:43 +07:00

12 lines
364 B
C#

using FluentValidation;
namespace Indotalent.Features.Purchase.DebitNote.Cqrs;
public class UpdateDebitNoteValidator : AbstractValidator<UpdateDebitNoteRequest>
{
public UpdateDebitNoteValidator()
{
RuleFor(x => x.Id).NotEmpty();
RuleFor(x => x.PurchaseReturnId).NotEmpty().WithMessage("Purchase Return reference is required");
}
}