|
|
@@ -362,7 +362,7 @@ const StaffUtilization: React.FC<Props> = ({ abilities, staff }) => { |
|
|
|
const startCount = weeklyPlanned[i].startCount |
|
|
|
const endCount = weeklyPlanned[i].endCount |
|
|
|
for (var j = 0; j < weeklyPlanned[i].searchDuration; j++) { |
|
|
|
if (j >= startCount && j < endCount) { |
|
|
|
if (j >= startCount && j <= endCount) { |
|
|
|
weeklyPlannedSubList.push(weeklyPlanned[i].AverageManhours) |
|
|
|
} else { |
|
|
|
weeklyPlannedSubList.push(0) |
|
|
@@ -503,7 +503,8 @@ const StaffUtilization: React.FC<Props> = ({ abilities, staff }) => { |
|
|
|
|
|
|
|
|
|
|
|
const fetchMonthlyUnsubmittedData = async () => { |
|
|
|
const fetchResult = await fetchMonthlyUnsubmit(teamUnsubmitTeamId, unsubmitMonthlyFromValue.format('YYYY-MM-DD'), unsubmitMonthlyToValue.endOf('month').format('YYYY-MM-DD'), holidayDates); |
|
|
|
const fetchResult = await fetchMonthlyUnsubmit(teamUnsubmitTeamId, unsubmitMonthlyFromValue.startOf('month').format('YYYY-MM-DD'), unsubmitMonthlyToValue.endOf('month').format('YYYY-MM-DD'), holidayDates); |
|
|
|
|
|
|
|
const result = [] |
|
|
|
const staffList = [] |
|
|
|
var maxValue = 5 |
|
|
|