edit math floor

master
Mohamed Mekawy 6 years ago
parent 8d1ad091e9
commit 3651f5a04a

@ -542,7 +542,7 @@ export class HomePage implements OnInit {
(result: OpenMissingSwipesResponse) => {
if (this.common.validResponse(result)) {
const key = "GetOpenMissingSwipesList";
this.statsButtons[1].statsValue = Math.ceil(result[key].P_OPEN_MISSING_SWIPES);
this.statsButtons[1].statsValue = Math.floor(result[key].P_OPEN_MISSING_SWIPES);
}
}
);
@ -613,7 +613,7 @@ openPeriodDateDashbored() {
ITGCountAllNotification() {
this.workListService.getITGDetails().subscribe((result: any) => {
this.statsButtons[0].statsValue =
Math.ceil(this.countAllNotification + result.TotalCount);
Math.floor(this.countAllNotification + result.TotalCount);
});
}
@ -693,7 +693,7 @@ getSubordinatesAttStatus() {
"HMG Annual Vacation Accrual Plan"
) {
this.statsButtons[2].statsValue =
Math.ceil(accrualBalance.ACCRUAL_NET_ENTITLEMENT);
Math.floor(accrualBalance.ACCRUAL_NET_ENTITLEMENT);
this.common.sharedService.setSharedData(
accrualBalance,
"leaveAccrualBalance"
@ -711,7 +711,7 @@ getSubordinatesAttStatus() {
totalTicketsLeft + accrualBalance.ACCRUAL_NET_ENTITLEMENT;
}
}
this.statsButtons[3].statsValue = Math.ceil(totalTicketsLeft);
this.statsButtons[3].statsValue = Math.floor(totalTicketsLeft);
}
});
}

Loading…
Cancel
Save