Commit a1846b40 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

MAJ script 8.1

parent 152cc90c
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -57,6 +57,7 @@ $data = explode("\n", $data); ...@@ -57,6 +57,7 @@ $data = explode("\n", $data);
<th>Taux FC</th> <th>Taux FC</th>
<th>Modulateur HC</th> <th>Modulateur HC</th>
<th>Heures</th> <th>Heures</th>
<th>Param1</th>
<th>SFi</th> <th>SFi</th>
<th>SFa</th> <th>SFa</th>
<th>SFc</th> <th>SFc</th>
...@@ -103,6 +104,7 @@ $data = explode("\n", $data); ...@@ -103,6 +104,7 @@ $data = explode("\n", $data);
$tauxFc = $c[4]; $tauxFc = $c[4];
$modulateurHC = 1; $modulateurHC = 1;
$heures = $c[6]; $heures = $c[6];
$param1 = null;
$serviceFi = stringToFloat(substr($c[60], 0, -5)); $serviceFi = stringToFloat(substr($c[60], 0, -5));
$serviceFa = stringToFloat(substr($c[61], 0, -5)); $serviceFa = stringToFloat(substr($c[61], 0, -5));
$serviceFc = stringToFloat(substr($c[62], 0, -5)); $serviceFc = stringToFloat(substr($c[62], 0, -5));
...@@ -117,15 +119,18 @@ $data = explode("\n", $data); ...@@ -117,15 +119,18 @@ $data = explode("\n", $data);
if ($typeIntervention == 'Référentiel') $typeIntervention = 'REFERENTIEL'; if ($typeIntervention == 'Référentiel') $typeIntervention = 'REFERENTIEL';
$referentiel = $typeIntervention == 'REFERENTIEL'; $referentiel = $typeIntervention == 'REFERENTIEL';
$tauxFi = (float)str_replace(',','.',substr($tauxFi,0,-1)) / 100; $tauxFi = stringToFloat(substr($tauxFi,0,-1)) / 100;
$tauxFa = (float)str_replace(',','.',substr($tauxFa,0,-1)) / 100; $tauxFa = stringToFloat(substr($tauxFa,0,-1)) / 100;
$tauxFc = (float)str_replace(',','.',substr($tauxFc,0,-1)) / 100; $tauxFc = stringToFloat(substr($tauxFc,0,-1)) / 100;
if ('' == $modulateurHC) $modulateurHC = 1; if ('' == $modulateurHC) $modulateurHC = 1;
$heures = substr($heures, 0, -2); $heures = substr($heures, 0, -2);
$heures = stringToFloat($heures); $heures = stringToFloat($heures);
if ($c[0] == 'KE8' || $c[0] == 'UP10'){
$param1 = $c[0];
}
$debug = false; $debug = false;
...@@ -148,6 +153,7 @@ $data = explode("\n", $data); ...@@ -148,6 +153,7 @@ $data = explode("\n", $data);
$vh->setTauxFc($tauxFc); $vh->setTauxFc($tauxFc);
$vh->setPonderationServiceCompl($modulateurHC); $vh->setPonderationServiceCompl($modulateurHC);
$vh->setHeures($heures); $vh->setHeures($heures);
$vh->setParam1($param1);
$vh->setAServiceFi($serviceFi); $vh->setAServiceFi($serviceFi);
$vh->setAServiceFa($serviceFa); $vh->setAServiceFa($serviceFa);
$vh->setAServiceFc($serviceFc); $vh->setAServiceFc($serviceFc);
...@@ -172,6 +178,7 @@ $data = explode("\n", $data); ...@@ -172,6 +178,7 @@ $data = explode("\n", $data);
<td><?= $tauxFc ?></td> <td><?= $tauxFc ?></td>
<td><?= $modulateurHC ?></td> <td><?= $modulateurHC ?></td>
<td><?= $heures ?></td> <td><?= $heures ?></td>
<td><?= $param1 ?></td>
<td><?= $serviceFi ?></td> <td><?= $serviceFi ?></td>
<td><?= $serviceFa ?></td> <td><?= $serviceFa ?></td>
<td><?= $serviceFc ?></td> <td><?= $serviceFc ?></td>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment