initial commit

This commit is contained in:
2026-07-21 14:28:43 +07:00
commit 01107db6fd
995 changed files with 75124 additions and 0 deletions
@@ -0,0 +1,14 @@
using FluentValidation;
namespace Indotalent.Features.Sales.PaymentReceive.Cqrs;
public class CreatePaymentReceiveValidator : AbstractValidator<CreatePaymentReceiveRequest>
{
public CreatePaymentReceiveValidator()
{
RuleFor(x => x.InvoiceId).NotEmpty().WithMessage("Invoice reference is required");
RuleFor(x => x.PaymentDate).NotEmpty().WithMessage("Payment date is required");
RuleFor(x => x.PaymentMethodId).NotEmpty().WithMessage("Payment method is required");
RuleFor(x => x.PaymentAmount).GreaterThan(0).WithMessage("Amount must be greater than 0");
}
}