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; },