Availability calculations in the allocation workbench wrong in Person Days

Pawel Kozlik
Tera Contributor

I spotted an issue with Person Days calculations for a couple of users in the Allocation Workbench. One of the users is not allocated for Feb 2024 and works on a 12-hour/week schedule. The calculations in hours and FTE are correct:

 

PawelKozlik_2-1701185685728.png

 

PawelKozlik_1-1701185645860.png

But the calculations in Person days are way off:

PawelKozlik_3-1701185725613.png

On the other hand the calculation in Resource Reports is correct:

PawelKozlik_4-1701185761599.png

How is the Person Days availability calculated? What can cause such error?

 

 

 

1 ACCEPTED SOLUTION

Marco0o1
Tera Sage

Hi @Pawel Kozlik ,

 The calculation is made in the client script "ResourcePlanStateChangeHandler"  callieg the process funtion and passing your current resource plan.  That script also call the script include "ResourcePlan", here are calculated the hours, you can read the script and look for the exact part "getPlannedHoursFromFte" function.  The exactly part where is calculated is in the  workingDays variables and here return the planned hours returning "ResourceManagementUtils.roundOffBasedOnCalendarEventProperty(averageDailyFte * workingDays[0] * fte, true);" variable. Now you can look how is calculated.

 

Marco0o1_0-1701723949627.png

Hope that help you

View solution in original post

2 REPLIES 2

EDL01071
Tera Contributor

Review the calculations in Workbench?

Marco0o1
Tera Sage

Hi @Pawel Kozlik ,

 The calculation is made in the client script "ResourcePlanStateChangeHandler"  callieg the process funtion and passing your current resource plan.  That script also call the script include "ResourcePlan", here are calculated the hours, you can read the script and look for the exact part "getPlannedHoursFromFte" function.  The exactly part where is calculated is in the  workingDays variables and here return the planned hours returning "ResourceManagementUtils.roundOffBasedOnCalendarEventProperty(averageDailyFte * workingDays[0] * fte, true);" variable. Now you can look how is calculated.

 

Marco0o1_0-1701723949627.png

Hope that help you