Hints & Tips
- Anytime you want to modify a balance by a decimal value, you will need to include the number in front of the decimal. *A value can’t be “.054” however “0.054” is accepted.
- If you experience any problems with the conversion from Hours to Days, please note that we only keep 3 decimal points of accuracy.
*For example, if we take the 5.333 hours and convert it to days it would be 0.666625 but we are rounding it off to display as 0.667 Days.
*If you add +0.333 day(s) to make it a full day (0.333+0.667=1), it only accounts for 2.664 hours. If we add 2.664 hours + 5.333 hours = 7.997 hours, not the full 8 hours. To resolve this just had 0.003 hours to the user's balance and it will allow for a full day of time off OR add the time in hours instead of days and that will be more accurate.
|