initial commit

This commit is contained in:
2026-07-21 13:52:43 +07:00
commit f0e6f38940
881 changed files with 66309 additions and 0 deletions
@@ -0,0 +1,14 @@
using FluentValidation;
namespace Indotalent.Features.Purchase.PaymentDisburse.Cqrs;
public class UpdatePaymentDisburseValidator : AbstractValidator<UpdatePaymentDisburseRequest>
{
public UpdatePaymentDisburseValidator()
{
RuleFor(x => x.Id).NotEmpty();
RuleFor(x => x.BillId).NotEmpty().WithMessage("Bill reference is required");
RuleFor(x => x.PaymentDate).NotEmpty().WithMessage("Payment date is required");
RuleFor(x => x.PaymentAmount).GreaterThan(0).WithMessage("Amount must be greater than 0");
}
}