This commit is contained in:
AdisakKanthawilang 2024-03-07 17:39:08 +07:00
parent 8d492370b6
commit f9de77f533

View file

@ -855,7 +855,7 @@ export class SalaryPeriodController extends Controller {
const amountFullType = await this.salaryProfileRepository.count({
where: {
salaryOrgId: salaryOrg.id,
salaryOrgId: salaryOrg?.id,
type: "FULL",
},
});
@ -872,7 +872,7 @@ export class SalaryPeriodController extends Controller {
.createQueryBuilder("salaryProfile")
.select("SUM(salaryProfile.amountUse)", "totalAmount")
.where({
salaryOrgId: salaryOrg.id,
salaryOrgId: salaryOrg?.id,
type: In(["HAFT", "FULL", "FULLHAFT"]),
})
.getRawOne();