Loading module/Application/src/Application/Entity/Db/Service.php +2 −1 Changes for module/Application/src/Application/Entity/Db/Service.php: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -200,7 +200,6 @@ class Service implements HistoriqueAwareInterface, ResourceInterface if ($this->elementPedagogique !== $elementPedagogique){ $this->elementPedagogique = $elementPedagogique; $this->changed = true; } if ($elementPedagogique) { $vhl = $this->getVolumeHoraireListe()->get(); Loading @@ -210,11 +209,13 @@ class Service implements HistoriqueAwareInterface, ResourceInterface if ( (!$typesIntervention->contains($vh->getTypeIntervention())) // types d'intervention devenus obsolètes || ($periode && $vh->getPeriode() != $periode) // périodes devenues obsolètes ) { $vh->setRemove(true); // Flag de demande de suppression du volume horaire lors de l'enregistrement de l'entité Service par son service Service } } } } return $this; } Loading module/Application/src/Application/Entity/Db/VolumeHoraire.php −33 Changes for module/Application/src/Application/Entity/Db/VolumeHoraire.php: 0 added lines, 33 removed lines. Original line number Diff line number Diff line Loading @@ -75,11 +75,6 @@ class VolumeHoraire implements HistoriqueAwareInterface, ResourceInterface */ private $formuleResultatVolumeHoraire; /** * @var integer */ private $temPlafondFcMaj; /** Loading Loading @@ -143,9 +138,6 @@ class VolumeHoraire implements HistoriqueAwareInterface, ResourceInterface */ public function setHeures($heures) { if ($heures > $this->heures){ $this->setTemPlafondFcMaj(2); // si augmentation alors on force... } $this->heures = round($heures, 2); return $this; Loading Loading @@ -214,9 +206,6 @@ class VolumeHoraire implements HistoriqueAwareInterface, ResourceInterface */ public function setMotifNonPaiement(\Application\Entity\Db\MotifNonPaiement $motifNonPaiement = null) { if (!$this->motifNonPaiement && $motifNonPaiement){ $this->setTemPlafondFcMaj(2); // on force... } $this->motifNonPaiement = $motifNonPaiement; return $this; Loading Loading @@ -449,28 +438,6 @@ class VolumeHoraire implements HistoriqueAwareInterface, ResourceInterface /** * @return int */ public function getTemPlafondFcMaj() { return $this->temPlafondFcMaj; } /** * @param int $temPlafondFcMaj */ public function setTemPlafondFcMaj($temPlafondFcMaj) { $this->temPlafondFcMaj = $temPlafondFcMaj; return $this; } public function getResourceId() { return 'VolumeHoraire'; Loading module/Application/src/Application/Service/ServiceService.php −2 Changes for module/Application/src/Application/Service/ServiceService.php: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -283,9 +283,7 @@ class ServiceService extends AbstractEntityService $serviceVolumeHoraire = $this->getServiceVolumeHoraire(); foreach ($entity->getVolumeHoraire() as $volumeHoraire) { /* @var $volumeHoraire \Application\Entity\Db\Volumehoraire */ if ($volumeHoraire->getTemPlafondFcMaj() !== 1) { $tvhs[] = $volumeHoraire->getTypeVolumeHoraire(); } if ($result !== $entity) $volumeHoraire->setService($result); if ($volumeHoraire->getRemove()) { $serviceVolumeHoraire->delete($volumeHoraire); Loading Loading
module/Application/src/Application/Entity/Db/Service.php +2 −1 Changes for module/Application/src/Application/Entity/Db/Service.php: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -200,7 +200,6 @@ class Service implements HistoriqueAwareInterface, ResourceInterface if ($this->elementPedagogique !== $elementPedagogique){ $this->elementPedagogique = $elementPedagogique; $this->changed = true; } if ($elementPedagogique) { $vhl = $this->getVolumeHoraireListe()->get(); Loading @@ -210,11 +209,13 @@ class Service implements HistoriqueAwareInterface, ResourceInterface if ( (!$typesIntervention->contains($vh->getTypeIntervention())) // types d'intervention devenus obsolètes || ($periode && $vh->getPeriode() != $periode) // périodes devenues obsolètes ) { $vh->setRemove(true); // Flag de demande de suppression du volume horaire lors de l'enregistrement de l'entité Service par son service Service } } } } return $this; } Loading
module/Application/src/Application/Entity/Db/VolumeHoraire.php −33 Changes for module/Application/src/Application/Entity/Db/VolumeHoraire.php: 0 added lines, 33 removed lines. Original line number Diff line number Diff line Loading @@ -75,11 +75,6 @@ class VolumeHoraire implements HistoriqueAwareInterface, ResourceInterface */ private $formuleResultatVolumeHoraire; /** * @var integer */ private $temPlafondFcMaj; /** Loading Loading @@ -143,9 +138,6 @@ class VolumeHoraire implements HistoriqueAwareInterface, ResourceInterface */ public function setHeures($heures) { if ($heures > $this->heures){ $this->setTemPlafondFcMaj(2); // si augmentation alors on force... } $this->heures = round($heures, 2); return $this; Loading Loading @@ -214,9 +206,6 @@ class VolumeHoraire implements HistoriqueAwareInterface, ResourceInterface */ public function setMotifNonPaiement(\Application\Entity\Db\MotifNonPaiement $motifNonPaiement = null) { if (!$this->motifNonPaiement && $motifNonPaiement){ $this->setTemPlafondFcMaj(2); // on force... } $this->motifNonPaiement = $motifNonPaiement; return $this; Loading Loading @@ -449,28 +438,6 @@ class VolumeHoraire implements HistoriqueAwareInterface, ResourceInterface /** * @return int */ public function getTemPlafondFcMaj() { return $this->temPlafondFcMaj; } /** * @param int $temPlafondFcMaj */ public function setTemPlafondFcMaj($temPlafondFcMaj) { $this->temPlafondFcMaj = $temPlafondFcMaj; return $this; } public function getResourceId() { return 'VolumeHoraire'; Loading
module/Application/src/Application/Service/ServiceService.php −2 Changes for module/Application/src/Application/Service/ServiceService.php: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -283,9 +283,7 @@ class ServiceService extends AbstractEntityService $serviceVolumeHoraire = $this->getServiceVolumeHoraire(); foreach ($entity->getVolumeHoraire() as $volumeHoraire) { /* @var $volumeHoraire \Application\Entity\Db\Volumehoraire */ if ($volumeHoraire->getTemPlafondFcMaj() !== 1) { $tvhs[] = $volumeHoraire->getTypeVolumeHoraire(); } if ($result !== $entity) $volumeHoraire->setService($result); if ($volumeHoraire->getRemove()) { $serviceVolumeHoraire->delete($volumeHoraire); Loading