Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9076

Wrong Computation of Earned Leave Quota

$
0
0

Hi all,

 

I am using time evaluation to grant earned leave. However, I met with an issue trying to grant the correct quota.

 

Following is my business requirement

1) Annual quota is 16 days

2) Earned leave will be granted on the following basis

Jan - 1 day

Feb - 3 days

Mar - 4 days

Apr - 5 days (and so on).


 

So my approach is to

 

1) To accrual base on monthly.

Snap 2014-11-18 at 17.00.01.jpg

2) To do pro-rata by the system

Snap 2014-11-18 at 17.00.20.jpg

3) To transfer once accrual

Snap 2014-11-18 at 17.00.32.jpg

4) And to round off to the nearest whole number.

Snap 2014-11-18 at 17.00.47.jpg

But the result generated is different from expected. Because though the 1.33333 is transferred, the system rounds the earned quota and then add to the total. Actually I am expecting it to be 2.66666 as total and then it will be rounded to 3.

Snap 2014-11-18 at 17.08.08.jpg

Appreciate your advise and apologies if it is repeated thread, as I couldn't find the correct thread to look into.


Viewing all articles
Browse latest Browse all 9076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>