diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index ae303916..614051e8 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -1734,12 +1734,14 @@ export class CommandController extends Controller { }); } commandRecive.amount = salaryData ? salaryData.amount : null_; + commandRecive.amountSpecial = salaryData ? salaryData.amountSpecial : null_; commandRecive.positionSalaryAmount = salaryData ? salaryData.positionSalaryAmount : null_; commandRecive.mouthSalaryAmount = salaryData ? salaryData.mouthSalaryAmount : null_; } else { commandRecive.amount = null_; + commandRecive.amountSpecial = null_; commandRecive.positionSalaryAmount = null_; commandRecive.mouthSalaryAmount = null_; } diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index ed5a1e4b..be236f11 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -4863,6 +4863,7 @@ export class ProfileController extends Controller { node: null, nodeId: null, salary: profile ? profile.amount : null, + amountSpecial: profile ? profile.amountSpecial : null }; if (_profile.child4Id != null) { diff --git a/src/controllers/ProfileDevelopmentController.ts b/src/controllers/ProfileDevelopmentController.ts index b9017db8..1d9149dd 100644 --- a/src/controllers/ProfileDevelopmentController.ts +++ b/src/controllers/ProfileDevelopmentController.ts @@ -172,7 +172,7 @@ export class ProfileDevelopmentController extends Controller { summary: null, point: null, name: data.name, - achievement10: "มีผลการพัฒนาและมีการดำเนินการตามเป้าหมายการนำไปพัฒนางาน1", + achievement10: "มีผลการพัฒนาและมีการดำเนินการตามเป้าหมายการนำไปพัฒนางาน", achievement5: "มีผลการพัฒนาแต่ยังไม่ได้ดำเนินการตามเป้าหมายการนำไปพัฒนางาน", achievement0: "ไม่ได้ดำเนินการพัฒนา", isDevelopment70: data.isDevelopment70, diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index d9d2f070..dff5fe59 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -2064,7 +2064,8 @@ export class ProfileEmployeeController extends Controller { child4ShortName: child4 == null ? null : child4.orgChild4ShortName, node: null, nodeId: null, - salary: profile.amount, + salary: profile ? profile.amount : null, + amountSpecial: profile ? profile.amountSpecial : null }; return new HttpSuccess(_profile); } diff --git a/src/controllers/ProfileEmployeeTempController.ts b/src/controllers/ProfileEmployeeTempController.ts index addb4af8..52bed431 100644 --- a/src/controllers/ProfileEmployeeTempController.ts +++ b/src/controllers/ProfileEmployeeTempController.ts @@ -1866,7 +1866,8 @@ export class ProfileEmployeeTempController extends Controller { ? null : profile.current_holders.find((x) => x.orgRevisionId == orgRevisionPublish.id)?.orgChild4 .orgChild4Name, - salary: profile.amount, + salary: profile ? profile.amount : null, + amountSpecial: profile ? profile.amountSpecial : null }; return new HttpSuccess(_profile); }