From 047bd4d9457869d83c71a1a80b0b2c11ce37dd67 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 1 May 2025 17:59:58 +0700 Subject: [PATCH] special --- src/controllers/ReportController.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index d479831..c661fe3 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -3955,15 +3955,11 @@ export class ReportController extends Controller { : "-", precentTwo: profile.positionSalaryAmountPer == 0.02 - ? Extension.ToThaiNumber( - (profile.positionSalaryAmount * profile.positionSalaryAmountPer).toLocaleString(), - ) + ? Extension.ToThaiNumber(profile.amountSpecial.toLocaleString()) : "-", //ร้อยละ 2 precentFour: profile.positionSalaryAmountPer == 0.04 - ? Extension.ToThaiNumber( - (profile.positionSalaryAmount * profile.positionSalaryAmountPer).toLocaleString(), - ) + ? Extension.ToThaiNumber(profile.amountSpecial.toLocaleString()) : "-", //ร้อยละ 4 reason: null, // หมายเหตุ };