fix ระบบทะเบียนประวัติผู้พ้นจากราชการ ขรก. >>ตัวอักษรย่อเลขที่ทำแหน่งไม่แสดง กรณีโดนลงโทษทางวินัย #1399

This commit is contained in:
Bright 2025-04-21 11:48:40 +07:00
parent 495d818eb3
commit 731a8e47aa
2 changed files with 8 additions and 12 deletions

View file

@ -2031,12 +2031,10 @@ export class ProfileEmployeeController extends Controller {
positionId: _data.positionIdTemp,
posmasterId: _data.posmasterIdTemp,
position: _data.position,
posNo:
_data.profileSalary[0].posNoAbb == ""
? ""
: _data.profileSalary[0].posNoAbb + _data.profileSalary[0].posNo == ""
? ""
: _data.profileSalary[0].posNo,
posNo:
_data.profileSalary[0].posNoAbb && _data.profileSalary[0].posNo
? _data.profileSalary[0].posNoAbb + _data.profileSalary[0].posNo
: _data.profileSalary[0].posNo || "",
employeeClass: _data.employeeClass == null ? null : _data.employeeClass,
govAge: Extension.CalculateGovAge(_data.dateAppoint, 0, 0),
age: Extension.CalculateAgeStrV2(_data.birthDate, 0, 0),