[Export] Export statistique thanato avec un grand total
This commit is contained in:
parent
dfe1fa7c92
commit
20b4f678e0
@ -204,6 +204,15 @@ class ExportThanatoStatisticService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function populateExportDataIntoFileContent(array $exportData,string $fileContent): string{
|
public function populateExportDataIntoFileContent(array $exportData,string $fileContent): string{
|
||||||
|
|
||||||
|
$g_totalDistance = 0;
|
||||||
|
$g_totalDevisHours = 0;
|
||||||
|
$g_totalWorkedHours = 0;
|
||||||
|
$g_totalLeaveHours = 0;
|
||||||
|
$g_totalTravelingHoursBetweenDevisLocation = 0;
|
||||||
|
$g_totalDiseaseHours = 0;
|
||||||
|
$g_totalRestHours = 0;
|
||||||
|
|
||||||
foreach($exportData as $devisDate => $devisData){
|
foreach($exportData as $devisDate => $devisData){
|
||||||
$totalDevisHours = 0;
|
$totalDevisHours = 0;
|
||||||
$totalWorkedHours = 8;
|
$totalWorkedHours = 8;
|
||||||
@ -278,7 +287,27 @@ class ExportThanatoStatisticService {
|
|||||||
$totalDiseaseHours,
|
$totalDiseaseHours,
|
||||||
$totalRestHours
|
$totalRestHours
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$g_totalDistance += $totalDistance;
|
||||||
|
$g_totalDevisHours += $totalDevisHours;
|
||||||
|
$g_totalWorkedHours += $totalWorkedHours;
|
||||||
|
$g_totalLeaveHours += $totalLeaveHours;
|
||||||
|
$g_totalTravelingHoursBetweenDevisLocation += $totalTravelingHoursBetweenDevisLocation;
|
||||||
|
$g_totalDiseaseHours += $totalDiseaseHours;
|
||||||
|
$g_totalRestHours += $totalRestHours;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$fileContent = $this->populateLastRecapForTheLine(
|
||||||
|
$fileContent,
|
||||||
|
$g_totalDistance,
|
||||||
|
$g_totalDevisHours,
|
||||||
|
$g_totalWorkedHours,
|
||||||
|
$g_totalLeaveHours,
|
||||||
|
$g_totalTravelingHoursBetweenDevisLocation,
|
||||||
|
$g_totalDiseaseHours,
|
||||||
|
$g_totalRestHours
|
||||||
|
);
|
||||||
|
|
||||||
return $fileContent;
|
return $fileContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user