From a86b505924a9e765576e2faa5e6974a229a4e1e6 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 21 Oct 2024 17:20:39 +0700 Subject: [PATCH] no message --- src/controllers/CommandController.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index 9c10eb5e..7dfb11e0 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -2178,6 +2178,9 @@ export class CommandController extends Controller { refCommandNo?: string | null; salaryRef?: string | null; commandId?: string | null; + amount?: Double | null; + positionSalaryAmount?: Double | null; + mouthSalaryAmount?: Double | null; }[]; }, ) { @@ -2228,11 +2231,9 @@ export class CommandController extends Controller { profile.profileSalary.length > 0 ? profile.profileSalary[0].positionPathSide : null, positionExecutive: profile.profileSalary.length > 0 ? profile.profileSalary[0].positionExecutive : null, - amount: profile.profileSalary.length > 0 ? profile.profileSalary[0].amount : null, - positionSalaryAmount: - profile.profileSalary.length > 0 ? profile.profileSalary[0].positionSalaryAmount : null, - mouthSalaryAmount: - profile.profileSalary.length > 0 ? profile.profileSalary[0].mouthSalaryAmount : null, + amount: item.amount ? item.amount : null, + positionSalaryAmount: item.positionSalaryAmount ? item.positionSalaryAmount : null, + mouthSalaryAmount: item.mouthSalaryAmount ? item.mouthSalaryAmount : null, order: profile.profileSalary.length >= 0 ? profile.profileSalary.length > 0