add director

This commit is contained in:
kittapath 2024-11-06 16:22:11 +07:00
parent fa420d10ab
commit 147cf17b38
3 changed files with 7 additions and 4 deletions

View file

@ -1369,7 +1369,7 @@ export class ProfileController extends Controller {
if (body.isDirector == true) {
condition = {
orgRootId: posMaster.orgRootId || "",
isDirector: true,
isDirectorChild: true,
};
}
const [lists, total] = await AppDataSource.getRepository(viewDirectorActing)
@ -4263,7 +4263,7 @@ export class ProfileController extends Controller {
child4ShortName: child4 == null ? null : child4.orgChild4ShortName,
node: null,
nodeId: null,
type: "EMPLOYEE",
type: profile.employeeClass,
salary:
profile && profile.profileSalarys.length > 0 ? profile.profileSalarys[0].amount : null,
};