ปัดเศษจำนวนวันขึ้น
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m7s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m7s
This commit is contained in:
parent
a07d436db8
commit
57dc171997
2 changed files with 10 additions and 10 deletions
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue