fix(reporting): update total utilization calculation precision and remove debug log from member time sheets

This commit is contained in:
shancds
2025-05-29 17:57:16 +05:30
parent 1f6bbce0ae
commit 8d6c43c59c
2 changed files with 2 additions and 3 deletions

View File

@@ -532,8 +532,8 @@ export default class ReportingAllocationController extends ReportingControllerBa
const total_time_logs = filteredRows.reduce((sum, member) => sum + parseFloat(member.logged_time || '0'), 0);
const total_estimated_hours = totalWorkingHours;
const total_utilization = total_time_logs > 0 && totalWorkingSeconds > 0
? ((total_time_logs / totalWorkingSeconds) * 100).toFixed(2)
: '0.00';
? ((total_time_logs / totalWorkingSeconds) * 100).toFixed(1)
: '0';
return res.status(200).send(new ServerResponse(true, {
filteredRows,