Merge branch 'develop' of github.com:Frappet/hrms-api-org into develop

This commit is contained in:
kittapath 2025-03-10 12:54:26 +07:00
commit efee15eb97

View file

@ -319,11 +319,11 @@ export class ReportController extends Controller {
(i: any) => i.isHigh === true
)
: []
if(_educations.length == 0) {
_educations = Array.isArray(x.Educations) && x.Educations != null
? (x.Educations as any[])[0]
: []
}
// if(_educations.length == 0) {
// _educations = Array.isArray(x.Educations) && x.Educations != null
// ? (x.Educations as any[])[0]
// : []
// }
}
}
else {
@ -370,10 +370,10 @@ export class ReportController extends Controller {
dateRetire: x.dateRetire,
dateRetireLaw: x.dateRetireLaw,
birthdate: x.birthdate,
education: _educations,
degree: x.degrees,
educationLevel: x.educationLevels,
field: x.fields,
Educations: _educations,
// degree: x.degrees,
// educationLevel: x.educationLevels,
// field: x.fields,
age: x.age,
currentPosition: null,
lengthPosition: null,
@ -602,11 +602,11 @@ export class ReportController extends Controller {
(i: any) => i.isHigh === true
)
: []
if(_educations.length == 0) {
_educations = Array.isArray(x.Educations) && x.Educations != null
? (x.Educations as any[])[0]
: []
}
// if(_educations.length == 0) {
// _educations = Array.isArray(x.Educations) && x.Educations != null
// ? (x.Educations as any[])[0]
// : []
// }
}
}
else {
@ -651,10 +651,10 @@ export class ReportController extends Controller {
dateRetire: x.dateRetire,
dateRetireLaw: x.dateRetireLaw,
birthdate: x.birthdate,
education: _educations,
degree: x.degrees,
educationLevel: x.educationLevels,
field: x.fields,
Educations: _educations != null ? _educations : [],
// degree: x.degrees,
// educationLevel: x.educationLevels,
// field: x.fields,
age: x.age,
currentPosition: null,
lengthPosition: null,