diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index fc3d268..d9adde3 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -2408,7 +2408,6 @@ export class ReportController extends Controller { relations: ["salaryOrg", "salaryOrg.salaryPeriod"], where: { type: In(["HAFT", "FULL", "FULLHAFT"]), - isNext: false, salaryOrg: { snapshot: "SNAP2", rootId: rootId, @@ -2529,10 +2528,14 @@ export class ReportController extends Controller { positionSalaryAmount: profile.positionSalaryAmount ? Extension.ToThaiNumber(profile.positionSalaryAmount.toLocaleString()) : null, - amountSpecial: + amountSpecialFormated: profile.amountSpecial > 0 ? "(" + Extension.ToThaiNumber(profile.amountSpecial.toString()) + ")" : "", + amountSpecial: + profile.amountSpecial > 0 + ? Extension.ToThaiNumber(profile.amountSpecial.toString()) + : "", score: null, //สรุปผลการประเมินฯ ระดับและคะแนน reason: null, }; @@ -4923,7 +4926,7 @@ export class ReportController extends Controller { no: Extension.ToThaiNumber((index + 1).toLocaleString()), fullName: fullName, position: profile.position, - posLevel: profile.posLevel, + posLevel: profile.posLevel ? Extension.ToThaiNumber(profile.posLevel.toLocaleString()):null, }; });