diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index 3c9ff90..d6a2d3f 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -7599,12 +7599,12 @@ export class ReportController extends Controller { "salaryProfileEmployee.amountUse", "salaryProfileEmployee.positionSalaryAmount", ]) - .orderBy("salaryProfile.rootOrder", "ASC") - .addOrderBy("salaryProfile.child1Order", "ASC") - .addOrderBy("salaryProfile.child2Order", "ASC") - .addOrderBy("salaryProfile.child3Order", "ASC") - .addOrderBy("salaryProfile.child4Order", "ASC") - .addOrderBy("salaryProfile.posMasterNo", "ASC") + .orderBy("salaryProfileEmployee.rootOrder", "ASC") + .addOrderBy("salaryProfileEmployee.child1Order", "ASC") + .addOrderBy("salaryProfileEmployee.child2Order", "ASC") + .addOrderBy("salaryProfileEmployee.child3Order", "ASC") + .addOrderBy("salaryProfileEmployee.child4Order", "ASC") + .addOrderBy("salaryProfileEmployee.posMasterNo", "ASC") .getMany(); const _salaryRank = salaryRank.map((item) => ({ @@ -7700,12 +7700,12 @@ export class ReportController extends Controller { "salaryProfileEmployee.amountUse", "salaryProfileEmployee.positionSalaryAmount", ]) - .orderBy("salaryProfile.rootOrder", "ASC") - .addOrderBy("salaryProfile.child1Order", "ASC") - .addOrderBy("salaryProfile.child2Order", "ASC") - .addOrderBy("salaryProfile.child3Order", "ASC") - .addOrderBy("salaryProfile.child4Order", "ASC") - .addOrderBy("salaryProfile.posMasterNo", "ASC") + .orderBy("salaryProfileEmployee.rootOrder", "ASC") + .addOrderBy("salaryProfileEmployee.child1Order", "ASC") + .addOrderBy("salaryProfileEmployee.child2Order", "ASC") + .addOrderBy("salaryProfileEmployee.child3Order", "ASC") + .addOrderBy("salaryProfileEmployee.child4Order", "ASC") + .addOrderBy("salaryProfileEmployee.posMasterNo", "ASC") .getMany(); const _salaryRank = salaryRank.map((item) => ({