Merge branch 'develop' of github.com:Frappet/bma-ehr-salary into develop
This commit is contained in:
commit
a06d22d8fa
1 changed files with 2 additions and 2 deletions
|
|
@ -1056,7 +1056,7 @@ export class SalaryPeriodController extends Controller {
|
|||
|
||||
const amountFullType = await this.salaryProfileRepository.count({
|
||||
where: {
|
||||
salaryOrgId: salaryOrg.id,
|
||||
salaryOrgId: salaryOrg?.id,
|
||||
type: "FULL",
|
||||
},
|
||||
});
|
||||
|
|
@ -1073,7 +1073,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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue