Commit 5e7f24d4 authored by Florian Joriot's avatar Florian Joriot
Browse files

Corrections mineures et renommage

parent ebbe19fa
Loading
Loading
Loading
Loading
Loading
+12
Changes for data/ddl/table/TBL_CONTRAT.php: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -225,6 +225,18 @@ return [
            'position'    => 43,
            'commentaire' => NULL,
        ],
        'MISSIONS_LIBELLES'           => [
            'name'        => 'MISSIONS_LIBELLES',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 1000,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 42,
            'commentaire' => NULL,
        ],
        'SERVICE_ID'                => [
            'name'        => 'SERVICE_ID',
            'type'        => 'int',
+9 −9
Changes for module/Contrat/src/Tbl/Process/ContratProcess.php: 9 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -669,17 +669,17 @@ class ContratProcess implements ProcessInterface

    public function calculLibelles(Contrat $contrat): void
    {
        $this->calculAutreLibelles($contrat);
        $this->calculAutresLibelles($contrat);
        if ($contrat->isMission) {
            $this->calculMissionLibelles($contrat);
            $this->calculTypeMissionLibelles($contrat);
            $this->calculMissionsLibelles($contrat);
            $this->calculTypesMissionLibelles($contrat);
        }

    }



    public function calculAutreLibelles(Contrat $contrat): string
    public function calculAutresLibelles(Contrat $contrat): string
    {
        $libelles = [];

@@ -692,13 +692,13 @@ class ContratProcess implements ProcessInterface
        sort($libelles); // Tri alphabétique

        $result                 = implode(', ', $libelles);
        $contrat->autreLibelles = $result;
        $contrat->autresLibelles = $result;
        return $result;
    }



    public function calculMissionLibelles(Contrat $contrat): string
    public function calculMissionsLibelles(Contrat $contrat): string
    {
        $libelles = [];

@@ -711,13 +711,13 @@ class ContratProcess implements ProcessInterface
        sort($libelles); // Tri alphabétique

        $result                  = implode(', ', $libelles);
        $contrat->missionLibelle = $result;
        $contrat->missionsLibelles = $result;
        return $result;
    }



    public function calculTypeMissionLibelles(Contrat $contrat): string
    public function calculTypesMissionLibelles(Contrat $contrat): string
    {
        $libelles = [];

@@ -730,7 +730,7 @@ class ContratProcess implements ProcessInterface
        sort($libelles); // Tri alphabétique

        $result                      = implode(', ', $libelles);
        $contrat->typeMissionLibelle = $result;
        $contrat->typesMissionLibelles = $result;
        return $result;
    }

+3 −3
Changes for module/Contrat/src/Tbl/Process/Model/Contrat.php: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -63,9 +63,9 @@ class Contrat
    public float $tauxRemuMajoreValeur = 0.0;

    public float $tauxCongesPayes = 0.0;
    public ?string $autreLibelles = null;
    public ?string $missionLibelle = null;
    public ?string $typeMissionLibelle = null;
    public ?string $autresLibelles = null;
    public ?string $missionsLibelles = null;
    public ?string $typesMissionLibelles = null;

    /** @var VolumeHoraire[] */
    public array     $volumesHoraires = [];
+2 −2
Changes for tests/TblContrat/CalculAutreLibellesTest.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ final class CalculAutreLibellesTest extends TblContratTestCase
        $this->process->calculAutreLibelles($contrat1);


        self::assertEquals('test1, test2', $contrat1->autreLibelles);
        self::assertEquals('test1, test2', $contrat1->autresLibelles);

    }

@@ -85,7 +85,7 @@ final class CalculAutreLibellesTest extends TblContratTestCase
        $this->process->calculAutreLibelles($contrat1);


        self::assertEquals('test1, test2', $contrat1->autreLibelles);
        self::assertEquals('test1, test2', $contrat1->autresLibelles);


    }