This commit is contained in:
AdisakKanthawilang 2024-03-05 10:22:40 +07:00
parent a76bdbacba
commit 55ec0d5e93

View file

@ -417,7 +417,7 @@ export class SalaryPeriodController extends Controller {
const checkPreviousType = await this.salaryProfileRepository.findOne({ const checkPreviousType = await this.salaryProfileRepository.findOne({
relations: ["salaryOrg", "salaryOrg.salaryPeriod"], relations: ["salaryOrg", "salaryOrg.salaryPeriod"],
where: { where: {
id: body.profileId, citizenId: salaryProfile?.citizenId,
salaryOrg: { salaryOrg: {
salaryPeriod: { salaryPeriod: {
period: "APR", period: "APR",