initial commit

This commit is contained in:
2026-07-21 14:08:10 +07:00
commit f7cf118326
533 changed files with 41762 additions and 0 deletions
@@ -0,0 +1,15 @@
using FluentValidation;
using Indotalent.Shared.Consts;
namespace Indotalent.Features.Organization.Employee.Cqrs;
public class UpdateEmployeeDeductionValidator : AbstractValidator<UpdateEmployeeDeductionRequest>
{
public UpdateEmployeeDeductionValidator()
{
RuleFor(x => x.Id).NotEmpty().WithMessage("ID is required");
RuleFor(x => x.DeductionId).NotEmpty().WithMessage("Deduction component is required");
RuleFor(x => x.Amount).GreaterThanOrEqualTo(0).WithMessage("Amount must be 0 or greater");
RuleFor(x => x.Description).MaximumLength(GlobalConsts.StringLengthShort);
}
}