This commit is contained in:
AdisakKanthawilang 2024-03-01 14:53:25 +07:00
parent a1b0936bf6
commit 53d12da717

View file

@ -362,7 +362,7 @@ export class SalaryPeriodController extends Controller {
.createQueryBuilder("salaryProfile")
.select('SUM(salaryProfile.amountUse)', 'totalAmount')
.where({
salaryOrgId: salaryProfile?.salaryOrg.id,
salaryOrgId: salaryOrg.id,
type: 'FULL',
})
.getRawOne();
@ -708,7 +708,7 @@ export class SalaryPeriodController extends Controller {
.createQueryBuilder("salaryProfile")
.select('SUM(salaryProfile.amountUse)', 'totalAmount')
.where({
salaryOrgId: salaryProfile?.salaryOrg.id,
salaryOrgId: salaryOrg.id,
type: 'FULL',
})
.getRawOne();