Merge branch 'fixes/fix-stat-features' into releases/release-h2f

This commit is contained in:
Tiavina 2025-03-28 16:48:21 +03:00
commit f252f931d7
2 changed files with 6 additions and 4 deletions

View File

@ -2599,7 +2599,7 @@ class PageController extends Controller {
*
*/
public function exportThanatoStatistic($thanatoIdsToExport){
public function exportThanatoStatistic($thanatoIdsToExport,$month,$year){
if(empty($thanatoIdsToExport)){
return "";
}

View File

@ -160,8 +160,8 @@ class ExportThanatoStatisticService {
''.';'.
DateHelpers::getPublicHolidayText($leave['isPublicHoliday']).';'.
$leaveValue.';'.
$diseaseValue.';'.
$restValue.';'.
$diseaseValue.';'.
''.';'.
''.';'.
''.';'.
@ -203,7 +203,8 @@ class ExportThanatoStatisticService {
}
}
}
$totalWorkedHours -= $totalLeaveHours - $totalRestHours - $totalDiseaseHours;
$totalAbsenceHours = $totalLeaveHours + $totalRestHours + $totalDiseaseHours;
$totalWorkedHours -= $totalAbsenceHours;
}
else{
$routeLines = $this->gestionBdd->getRouteLinesByDevisIdList($devisData["devisId"]);
@ -233,7 +234,8 @@ class ExportThanatoStatisticService {
}
}
}
$totalWorkedHours -= $totalLeaveHours - $totalRestHours - $totalDiseaseHours;
$totalAbsenceHours = $totalLeaveHours + $totalRestHours + $totalDiseaseHours;
$totalWorkedHours -= $totalAbsenceHours;
}
$fileContent = $this->populateLastRecapForTheLine(
$fileContent,