Loading module/Contrat/src/Tbl/Process/ContratProcess.php +10 −9 Changes for module/Contrat/src/Tbl/Process/ContratProcess.php: 10 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -337,7 +337,7 @@ class ContratProcess implements ProcessInterface * @param array $contrats * @return void */ public function contratProlongationMission(array $contrats): void public function contratProlongationMission(array &$contrats): void { $contratPrincipaux = []; Loading Loading @@ -366,9 +366,10 @@ class ContratProcess implements ProcessInterface } // Pour les missions qui dépassent on cherche si un avenant non édité existe avec des heures pour ces missions pour modifier la date de fin $dateMissions = $this->ChangementDateAvenantNonEdite($dateMissions, $contrat); // Si aucun avenant n'existe on créer un avenant sur la date la plus éloignée pour une prolongation de tous ceux qui n'ont pas d'avenant // Si aucun avenant n'existe on crée un avenant sur la date la plus éloignée pour une prolongation de tous ceux qui n'ont pas d'avenant if (!empty($dateMissions)) { $this->CreationAvenantProlongation($contrat, $dateMissions, $dateDebutContrat, $intervenantId); $avenantProlongation = $this->creationAvenantProlongation($contrat, $dateMissions, $dateDebutContrat, $intervenantId); $contrats[$avenantProlongation->uuid] = $avenantProlongation; } } } Loading Loading @@ -446,7 +447,7 @@ class ContratProcess implements ProcessInterface * @param array|Contrat[] $contrats * @throws Exception */ public function calculParentsIds(array $contrats): void public function calculParentsIds(array &$contrats): void { if (count($contrats) < 2) { // On élague tous les cas simples où il n'y a qu'un document max => c'est forcément un contrat Loading Loading @@ -636,7 +637,7 @@ class ContratProcess implements ProcessInterface /** * @param array|Contrat[] $contrats */ public function calculNumerosAvenants(array $contrats): void public function calculNumerosAvenants(array &$contrats): void { foreach ($contrats as $contrat) { $this->calculNumeroAvenant($contrat); Loading Loading @@ -875,7 +876,6 @@ class ContratProcess implements ProcessInterface public function extractContrat(Contrat $contrat): array { $typeServiceId = $contrat->isMission ? $this->getServiceTypeService()->getMission()->getId() : $this->getServiceTypeService()->getEnseignement()->getId(); $data = [ 'annee_id' => $contrat->annee->getId(), 'intervenant_id' => $contrat->intervenantId, Loading Loading @@ -929,7 +929,6 @@ class ContratProcess implements ProcessInterface public function extractVolumeHoraire(VolumeHoraire $vh): array { $contrat = $vh->contrat; $data = [ 'annee_id' => $contrat->annee->getId(), 'intervenant_id' => $contrat->intervenantId, Loading Loading @@ -1122,9 +1121,9 @@ class ContratProcess implements ProcessInterface * @param array $dateMissions * @param mixed $dateDebutContrat * @param int|null $intervenantId * @return void * @return Contrat */ public function CreationAvenantProlongation(Contrat $contrat, array $dateMissions, mixed $dateDebutContrat, ?int $intervenantId): void public function creationAvenantProlongation(Contrat $contrat, array $dateMissions, mixed $dateDebutContrat, ?int $intervenantId): Contrat { $avenantProlongation = new Contrat(); $avenantProlongation->parent = $contrat; Loading @@ -1145,6 +1144,8 @@ class ContratProcess implements ProcessInterface $avenantProlongation->typeService = $contrat->typeService; $this->intervenants[$intervenantId][$avenantProlongation->uuid] = $avenantProlongation; return $avenantProlongation; } Loading module/Paiement/view/paiement/paiement/etat-paiement-tableau.phtml +2 −1 Changes for module/Paiement/view/paiement/paiement/etat-paiement-tableau.phtml: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -56,8 +56,9 @@ $hasCp = isset($etatPaiement['total']['conges-payes']) && $etatPaiement['total'] <th class="nombre"><?= $hetdRem == 'hetd' ? \UnicaenApp\Util::formattedPourcentage($lep['total']['hetd-pourc']) : '' ?></th> <th> </th> <th> </th> <?php if ($majFc): ?><th> </th><?php endif; ?> <?php if ($hetdRem != 'hetd'): ?><th> </th><?php endif; ?> <th class="nombre"><?= $hetdRem == 'hetd' ? \UnicaenApp\Util::formattedEuros($lep['total']['hetd-montant']) : '' ?></th> <?php if ($hetdRem == 'hetd'): ?><th> </th><?php endif; ?> <?php if ($hasCp): ?><th class="nombre"><?= $hetdRem == 'hetd' ? '' : \UnicaenApp\Util::formattedEuros($lep['total']['rem-fc-d714']) ?></th><?php endif; ?> <th class="nombre"><?= $hetdRem == 'hetd' ? \UnicaenApp\Util::formattedNumber($lep['total']['exercice-aa']) : \UnicaenApp\Util::formattedEuros($lep['total']['exercice-aa-montant']) ?></th> <th class="nombre"><?= $hetdRem == 'hetd' ? \UnicaenApp\Util::formattedNumber($lep['total']['exercice-ac']) : \UnicaenApp\Util::formattedEuros($lep['total']['exercice-ac-montant']) ?></th> Loading Loading
module/Contrat/src/Tbl/Process/ContratProcess.php +10 −9 Changes for module/Contrat/src/Tbl/Process/ContratProcess.php: 10 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -337,7 +337,7 @@ class ContratProcess implements ProcessInterface * @param array $contrats * @return void */ public function contratProlongationMission(array $contrats): void public function contratProlongationMission(array &$contrats): void { $contratPrincipaux = []; Loading Loading @@ -366,9 +366,10 @@ class ContratProcess implements ProcessInterface } // Pour les missions qui dépassent on cherche si un avenant non édité existe avec des heures pour ces missions pour modifier la date de fin $dateMissions = $this->ChangementDateAvenantNonEdite($dateMissions, $contrat); // Si aucun avenant n'existe on créer un avenant sur la date la plus éloignée pour une prolongation de tous ceux qui n'ont pas d'avenant // Si aucun avenant n'existe on crée un avenant sur la date la plus éloignée pour une prolongation de tous ceux qui n'ont pas d'avenant if (!empty($dateMissions)) { $this->CreationAvenantProlongation($contrat, $dateMissions, $dateDebutContrat, $intervenantId); $avenantProlongation = $this->creationAvenantProlongation($contrat, $dateMissions, $dateDebutContrat, $intervenantId); $contrats[$avenantProlongation->uuid] = $avenantProlongation; } } } Loading Loading @@ -446,7 +447,7 @@ class ContratProcess implements ProcessInterface * @param array|Contrat[] $contrats * @throws Exception */ public function calculParentsIds(array $contrats): void public function calculParentsIds(array &$contrats): void { if (count($contrats) < 2) { // On élague tous les cas simples où il n'y a qu'un document max => c'est forcément un contrat Loading Loading @@ -636,7 +637,7 @@ class ContratProcess implements ProcessInterface /** * @param array|Contrat[] $contrats */ public function calculNumerosAvenants(array $contrats): void public function calculNumerosAvenants(array &$contrats): void { foreach ($contrats as $contrat) { $this->calculNumeroAvenant($contrat); Loading Loading @@ -875,7 +876,6 @@ class ContratProcess implements ProcessInterface public function extractContrat(Contrat $contrat): array { $typeServiceId = $contrat->isMission ? $this->getServiceTypeService()->getMission()->getId() : $this->getServiceTypeService()->getEnseignement()->getId(); $data = [ 'annee_id' => $contrat->annee->getId(), 'intervenant_id' => $contrat->intervenantId, Loading Loading @@ -929,7 +929,6 @@ class ContratProcess implements ProcessInterface public function extractVolumeHoraire(VolumeHoraire $vh): array { $contrat = $vh->contrat; $data = [ 'annee_id' => $contrat->annee->getId(), 'intervenant_id' => $contrat->intervenantId, Loading Loading @@ -1122,9 +1121,9 @@ class ContratProcess implements ProcessInterface * @param array $dateMissions * @param mixed $dateDebutContrat * @param int|null $intervenantId * @return void * @return Contrat */ public function CreationAvenantProlongation(Contrat $contrat, array $dateMissions, mixed $dateDebutContrat, ?int $intervenantId): void public function creationAvenantProlongation(Contrat $contrat, array $dateMissions, mixed $dateDebutContrat, ?int $intervenantId): Contrat { $avenantProlongation = new Contrat(); $avenantProlongation->parent = $contrat; Loading @@ -1145,6 +1144,8 @@ class ContratProcess implements ProcessInterface $avenantProlongation->typeService = $contrat->typeService; $this->intervenants[$intervenantId][$avenantProlongation->uuid] = $avenantProlongation; return $avenantProlongation; } Loading
module/Paiement/view/paiement/paiement/etat-paiement-tableau.phtml +2 −1 Changes for module/Paiement/view/paiement/paiement/etat-paiement-tableau.phtml: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -56,8 +56,9 @@ $hasCp = isset($etatPaiement['total']['conges-payes']) && $etatPaiement['total'] <th class="nombre"><?= $hetdRem == 'hetd' ? \UnicaenApp\Util::formattedPourcentage($lep['total']['hetd-pourc']) : '' ?></th> <th> </th> <th> </th> <?php if ($majFc): ?><th> </th><?php endif; ?> <?php if ($hetdRem != 'hetd'): ?><th> </th><?php endif; ?> <th class="nombre"><?= $hetdRem == 'hetd' ? \UnicaenApp\Util::formattedEuros($lep['total']['hetd-montant']) : '' ?></th> <?php if ($hetdRem == 'hetd'): ?><th> </th><?php endif; ?> <?php if ($hasCp): ?><th class="nombre"><?= $hetdRem == 'hetd' ? '' : \UnicaenApp\Util::formattedEuros($lep['total']['rem-fc-d714']) ?></th><?php endif; ?> <th class="nombre"><?= $hetdRem == 'hetd' ? \UnicaenApp\Util::formattedNumber($lep['total']['exercice-aa']) : \UnicaenApp\Util::formattedEuros($lep['total']['exercice-aa-montant']) ?></th> <th class="nombre"><?= $hetdRem == 'hetd' ? \UnicaenApp\Util::formattedNumber($lep['total']['exercice-ac']) : \UnicaenApp\Util::formattedEuros($lep['total']['exercice-ac-montant']) ?></th> Loading