diff --git a/front/Formule/Test/Test.vue b/front/Formule/Test/Test.vue index f8dc6e1c449329c12783c5fa30ed6c474876ccdf..6d3c0cff97c7456a4617982c7165b1395cd3d53c 100644 --- a/front/Formule/Test/Test.vue +++ b/front/Formule/Test/Test.vue @@ -447,14 +447,14 @@ <td> <div v-show="!['', null, 'Référentiel'].includes(vh.typeInterventionCode)"> <u-input-float v-model="vh.tauxFa" is-pourc class="dinput" :data-variable="l" - @change="majTauxFi" style="width:3em"/> + @change="majTauxFi" @click="majTauxFi" style="width:3em"/> <span class="pourc">%</span> </div> </td> <td> <div v-show="!['', null, 'Référentiel'].includes(vh.typeInterventionCode)"> <u-input-float v-model="vh.tauxFc" is-pourc class="dinput" :data-variable="l" - @change="majTauxFi" style="width:3em"/> + @change="majTauxFi" @click="majTauxFi" style="width:3em"/> <span class="pourc">%</span> </div> </td> @@ -806,7 +806,6 @@ export default { content += (vh.structureCode ? vh.structureCode : '') + ";" + (vh.nonPayable ? 'Oui' : 'Non') + ";" + (vh.serviceStatutaire ? 'Oui' : 'Non') + ";" - + (vh.nonPayable ? 'Oui' : 'Non') + ";" + (vh.referentiel ? 'Référentiel' : (vh.typeInterventionCode ? vh.typeInterventionCode : '')) + ";" + (vh.tauxFi ? vh.tauxFi.toLocaleString('fr-FR') : '') + ";" + (vh.tauxFa ? vh.tauxFa.toLocaleString('fr-FR') : '') + ";" diff --git a/module/Formule/src/Controller/TestController.php b/module/Formule/src/Controller/TestController.php index aeff994f5793da301e78230abe720978bd3cb042..2cc8a766b582b0abde01b6360e5d4e80ebe2c29e 100755 --- a/module/Formule/src/Controller/TestController.php +++ b/module/Formule/src/Controller/TestController.php @@ -8,7 +8,6 @@ use Application\Entity\Db\Annee; use Application\Service\Traits\ContextServiceAwareTrait; use Application\Service\Traits\ParametresServiceAwareTrait; use Formule\Entity\Db\Formule; -use Formule\Entity\Db\FormuleTestIntervenant; use Formule\Model\FormuleCalcul; use Formule\Service\FormulatorServiceAwareTrait; use Formule\Service\TestServiceAwareTrait; diff --git a/module/Formule/src/Service/TestService.php b/module/Formule/src/Service/TestService.php index 75e16bf5bb6f0483dd4261481d8b455d64367b93..3c45bc32f4e162a85dfa91cf3507bd1dd839657c 100755 --- a/module/Formule/src/Service/TestService.php +++ b/module/Formule/src/Service/TestService.php @@ -232,6 +232,8 @@ class TestService extends AbstractEntityService unset($vh['tauxServiceDu']); unset($vh['tauxServiceCompl']); + $vh['tauxFi'] = round(1 - $vh['tauxFa'] - $vh['tauxFc'],2); + $vhOk = ($vh['structureCode'] ?? null) !== null && ($vh['heures'] ?? null) !== null; if ($vhOk) {