Menu

#5472 Number of days round off issue - apply assign leave

open
nobody
Leave (265)
8
2011-02-15
2011-02-15
No

Version : orangehrm-2.6.1-advanced.6521

Description :
Number of days round off issue - apply assign leave

Steps :
1.Assume employee has 8 hour shift
2.Apply 7 hour leave for the 02-02-2011 and approve it
3.Now try to apply one hour leave for another day, system will show the message as "Leave Balance Exceeded"

Reason: system convert hours to decimal and shows in the leave summary and leave list.Here is the issue.
1.After applying 7 our leave.system convert it to decimal as follow:-
Number of Hour applied/number of hour per work shift = 7 hour/8 hour =0.875, then it round it to 0.88
2.When user tries to apply another one hour leave,
1hour/8 hour = 0.125, after rounding it become 0.13
3.but according to the above calculation remaining leave is 0.12, then system will show message as above "leave balance exceeded"

Discussion

MongoDB Logo MongoDB