From 57dc171997c44a2858409aa38a4c9aafce27cc5c Mon Sep 17 00:00:00 2001 From: harid Date: Fri, 10 Apr 2026 17:55:29 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=B1=E0=B8=94=E0=B9=80=E0=B8=A8?= =?UTF-8?q?=E0=B8=A9=E0=B8=88=E0=B8=B3=E0=B8=99=E0=B8=A7=E0=B8=99=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=99=E0=B8=82=E0=B8=B6=E0=B9=89=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileSalaryController.ts | 12 ++++++------ src/controllers/ProfileSalaryEmployeeController.ts | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/controllers/ProfileSalaryController.ts b/src/controllers/ProfileSalaryController.ts index 4736337a..c8193750 100644 --- a/src/controllers/ProfileSalaryController.ts +++ b/src/controllers/ProfileSalaryController.ts @@ -605,7 +605,7 @@ export class ProfileSalaryController extends Controller { // Recalculate year, month, and day existing.year = Math.floor(existing.days / 365.2524); existing.month = Math.floor((existing.days / 30.4375) % 12); - existing.day = Math.floor(existing.days % 30.4375); + existing.day = Math.ceil(existing.days % 30.4375); return acc; }, @@ -644,7 +644,7 @@ export class ProfileSalaryController extends Controller { // Recalculate year, month, and day existing.year = Math.floor(existing.days / 365.2524); existing.month = Math.floor((existing.days / 30.4375) % 12); - existing.day = Math.floor(existing.days % 30.4375); + existing.day = Math.ceil(existing.days % 30.4375); return acc; }, @@ -678,7 +678,7 @@ export class ProfileSalaryController extends Controller { // Recalculate year, month, and day existing.year = Math.floor(existing.days / 365.2524); existing.month = Math.floor((existing.days / 30.4375) % 12); - existing.day = Math.floor(existing.days % 30.4375); + existing.day = Math.ceil(existing.days % 30.4375); return acc; }, @@ -742,7 +742,7 @@ export class ProfileSalaryController extends Controller { // Recalculate year, month, and day existing.year = Math.floor(existing.days / 365.2524); existing.month = Math.floor((existing.days / 30.4375) % 12); - existing.day = Math.floor(existing.days % 30.4375); + existing.day = Math.ceil(existing.days % 30.4375); return acc; }, @@ -785,7 +785,7 @@ export class ProfileSalaryController extends Controller { // Recalculate year, month, and day existing.year = Math.floor(existing.days / 365.2524); existing.month = Math.floor((existing.days / 30.4375) % 12); - existing.day = Math.floor(existing.days % 30.4375); + existing.day = Math.ceil(existing.days % 30.4375); return acc; }, @@ -822,7 +822,7 @@ export class ProfileSalaryController extends Controller { // Recalculate year, month, and day existing.year = Math.floor(existing.days / 365.2524); existing.month = Math.floor((existing.days / 30.4375) % 12); - existing.day = Math.floor(existing.days % 30.4375); + existing.day = Math.ceil(existing.days % 30.4375); return acc; }, diff --git a/src/controllers/ProfileSalaryEmployeeController.ts b/src/controllers/ProfileSalaryEmployeeController.ts index f113a2ba..5b87003c 100644 --- a/src/controllers/ProfileSalaryEmployeeController.ts +++ b/src/controllers/ProfileSalaryEmployeeController.ts @@ -177,7 +177,7 @@ export class ProfileSalaryEmployeeController extends Controller { existing.year = Math.floor(existing.days / 365.2524); existing.month = Math.floor((existing.days / 30.4375) % 12); - existing.day = Math.floor(existing.days % 30.4375); + existing.day = Math.ceil(existing.days % 30.4375); return acc; }, @@ -213,7 +213,7 @@ export class ProfileSalaryEmployeeController extends Controller { existing.year = Math.floor(existing.days / 365.2524); existing.month = Math.floor((existing.days / 30.4375) % 12); - existing.day = Math.floor(existing.days % 30.4375); + existing.day = Math.ceil(existing.days % 30.4375); return acc; }, @@ -268,7 +268,7 @@ export class ProfileSalaryEmployeeController extends Controller { existing.year = Math.floor(existing.days / 365.2524); existing.month = Math.floor((existing.days / 30.4375) % 12); - existing.day = Math.floor(existing.days % 30.4375); + existing.day = Math.ceil(existing.days % 30.4375); return acc; }, @@ -304,7 +304,7 @@ export class ProfileSalaryEmployeeController extends Controller { existing.year = Math.floor(existing.days / 365.2524); existing.month = Math.floor((existing.days / 30.4375) % 12); - existing.day = Math.floor(existing.days % 30.4375); + existing.day = Math.ceil(existing.days % 30.4375); return acc; },