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,

View File

@@ -184,7 +184,6 @@ const MembersTimeSheet = forwardRef<MembersTimeSheetRef, MembersTimeSheetProps>(
};
const res = await reportingTimesheetApiService.getMemberTimeSheets(body, archived);
console.log('Members Time Sheet Data:', res.body.totals);
if (res.done) {
setJsonData(res.body.filteredRows || []);