diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index d30628f..346c32c 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -527,6 +527,7 @@ export class SalaryPeriodController extends Controller { const salaryOrgAll = await this.salaryOrgRepository.find({ where: { salaryPeriodId: salaryOrg.salaryPeriodId, + snapshot: salaryOrg.snapshot, }, }); if (!salaryOrgAll) { diff --git a/src/entities/SalaryProfile.ts b/src/entities/SalaryProfile.ts index badbaba..9c2377a 100644 --- a/src/entities/SalaryProfile.ts +++ b/src/entities/SalaryProfile.ts @@ -322,7 +322,7 @@ export class CreateSalaryProfile { posExecutive: string | null; @Column() - amount: number; + amount: number | null; @Column("uuid") rootId: string | null;