From 2d6cf2524b8c63a99382d3ef7c4ad311face09f6 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 25 Dec 2024 16:00:33 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=E0=B8=9F=E0=B8=B4=E0=B8=A5=E0=B8=94=E0=B9=8C=20posNo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileController.ts | 6 ++++++ src/controllers/ProfileEmployeeController.ts | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index a26979ad..2c763f0d 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -4810,6 +4810,9 @@ export class ProfileController extends Controller { nodeId: null, type: profile.employeeClass, salary: profile.amount, + posNo : root?.orgRootShortName && posMaster?.posMasterNo + ? `${root?.orgRootShortName}${posMaster?.posMasterNo}` + : "" }; if (_profile.child4Id != null) { _profile.node = 4; @@ -4951,6 +4954,9 @@ export class ProfileController extends Controller { nodeId: null, salary: profile ? profile.amount : null, amountSpecial: profile ? profile.amountSpecial : null, + posNo : root?.orgRootShortName && posMaster?.posMasterNo + ? `${root?.orgRootShortName}${posMaster?.posMasterNo}` + : "" }; if (_profile.child4Id != null) { diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 60f75640..02cf1e6e 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -2153,6 +2153,9 @@ export class ProfileEmployeeController extends Controller { nodeId: null, salary: profile ? profile.amount : null, amountSpecial: profile ? profile.amountSpecial : null, + posNo : root?.orgRootShortName && posMaster?.posMasterNo + ? `${root?.orgRootShortName}${posMaster?.posMasterNo}` + : "" }; return new HttpSuccess(_profile); }