Commit e91c083f authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

AMélioration avec liens depuis DebugTest Contrats

parent e237f421
Loading
Loading
Loading
Loading
Loading
+9 −5
Changes for code/contrats/debugTests.php: 9 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -72,6 +72,9 @@ $volumesHoraires = [];

foreach ($cData as $contrat) {
    $contrat['volumesHoraires'] = [];
    $contrats[$contrat['id']] = $contrat;
}

foreach ($vhData as $vh) {
    if ($vh['volume_horaire_id']) {
        $vh['type']  = 'ens';
@@ -92,14 +95,12 @@ foreach ($cData as $contrat) {
        $vh['s_id'] = $vh['mission_id'];
    }

    if (!empty($vh['contrat_id'])){
        $contrats[$vh['contrat_id']]['volumesHoraires'][] = $vh;
    }else{
        $volumesHoraires[] = $vh;
        if ($vh['contrat_id'] == $contrat['id']) {
            $contrat['volumesHoraires'][] = $vh;
    }
}
    $contrats[$contrat['id']] = $contrat;
}


// Affichage des données

@@ -221,6 +222,9 @@ foreach ($contrats as $contrat) {
// Génération d'un jeu de tests unitaires pour le TBL Contrat
echo "<h2>Génération d'un jeu de tests unitaires pour le TBL Contrat</h2>";

echo '<a href="'.\UnicaenCode\Util::url('contrats/tblContratIntervenant', ['intervenantId' => $intervenantId]).'">Affichage des données en sortie du TBL_CONTRAT</a><br />';
echo '<a href="'.$this->url('intervenant/contrat', ['intervenant' => $intervenantId]).'">Page contrat de l\'intervenant</a><br />';

$contratIndex         = 0;
$avenantIndex         = 0;
$volumesHorairesIndex = 0;
+1 −1
Changes for composer.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@
        "unicaen/authentification"         : "6.4.3",
        "unicaen/privilege"                : "6.2.1",
        "unicaen/utilisateur"              : "7.0.2",
        "unicaen/code"                     : "6.3.0",
        "unicaen/code"                     : "6.4.0",
        "unicaen/import"                   : "6.0.6",
        "unicaen/tbl"                      : "6.2.5",
        "unicaen/open-document"            : "6.0.10",
+37 −37
Changes for composer.lock: 37 added lines, 37 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
        "This file is @generated automatically"
    ],
    "content-hash": "0dcd2546b806cfbda11e348e500791a0",
    "content-hash": "7f4ede3a48b1a334d938a6c2b7676fe6",
    "packages": [
        {
            "name": "apereo/phpcas",
@@ -287,7 +287,7 @@
            "source": {
                "type": "git",
                "url": "https://git.unicaen.fr/open-source/connecteur-ose/actul.git",
                "reference": "2bcda103b583cf65f0439ed13741706a802969cb"
                "reference": "5271c68058573ae0cc3f0fcacf5564f5f037dd29"
            },
            "type": "library",
            "autoload": {
@@ -296,7 +296,7 @@
                }
            },
            "description": "Connecteur Actul pour OSE",
            "time": "2024-11-14T10:44:04+00:00"
            "time": "2025-02-28T10:21:53+00:00"
        },
        {
            "name": "connecteur-ose/pegase",
@@ -1798,16 +1798,16 @@
        },
        {
            "name": "egulias/email-validator",
            "version": "4.0.3",
            "version": "4.0.4",
            "source": {
                "type": "git",
                "url": "https://github.com/egulias/EmailValidator.git",
                "reference": "b115554301161fa21467629f1e1391c1936de517"
                "reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/b115554301161fa21467629f1e1391c1936de517",
                "reference": "b115554301161fa21467629f1e1391c1936de517",
                "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa",
                "reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa",
                "shasum": ""
            },
            "require": {
@@ -1853,7 +1853,7 @@
            ],
            "support": {
                "issues": "https://github.com/egulias/EmailValidator/issues",
                "source": "https://github.com/egulias/EmailValidator/tree/4.0.3"
                "source": "https://github.com/egulias/EmailValidator/tree/4.0.4"
            },
            "funding": [
                {
@@ -1861,7 +1861,7 @@
                    "type": "github"
                }
            ],
            "time": "2024-12-27T00:36:43+00:00"
            "time": "2025-03-06T22:45:56+00:00"
        },
        {
            "name": "fightbulc/moment",
@@ -5931,16 +5931,16 @@
        },
        {
            "name": "symfony/console",
            "version": "v6.4.17",
            "version": "v6.4.20",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/console.git",
                "reference": "799445db3f15768ecc382ac5699e6da0520a0a04"
                "reference": "2e4af9c952617cc3f9559ff706aee420a8464c36"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/console/zipball/799445db3f15768ecc382ac5699e6da0520a0a04",
                "reference": "799445db3f15768ecc382ac5699e6da0520a0a04",
                "url": "https://api.github.com/repos/symfony/console/zipball/2e4af9c952617cc3f9559ff706aee420a8464c36",
                "reference": "2e4af9c952617cc3f9559ff706aee420a8464c36",
                "shasum": ""
            },
            "require": {
@@ -6005,7 +6005,7 @@
                "terminal"
            ],
            "support": {
                "source": "https://github.com/symfony/console/tree/v6.4.17"
                "source": "https://github.com/symfony/console/tree/v6.4.20"
            },
            "funding": [
                {
@@ -6021,7 +6021,7 @@
                    "type": "tidelift"
                }
            ],
            "time": "2024-12-07T12:07:30+00:00"
            "time": "2025-03-03T17:16:38+00:00"
        },
        {
            "name": "symfony/deprecation-contracts",
@@ -7619,11 +7619,11 @@
        },
        {
            "name": "unicaen/code",
            "version": "6.3.0",
            "version": "6.4.0",
            "source": {
                "type": "git",
                "url": "https://git.unicaen.fr/lib/unicaen/code.git",
                "reference": "466bb948c660e318dd87dbac5cafcd639332cf98"
                "reference": "ef7a2e09cfa7be42549dbefcc15833520ed2a530"
            },
            "require": {
                "easybook/geshi": ">=1.0",
@@ -7640,7 +7640,7 @@
                ]
            },
            "description": "Boite à outils pour la programmation avec la bibliothèque Unicaen",
            "time": "2025-01-30T09:01:11+00:00"
            "time": "2025-04-03T08:34:08+00:00"
        },
        {
            "name": "unicaen/import",
@@ -10565,16 +10565,16 @@
        },
        {
            "name": "squizlabs/php_codesniffer",
            "version": "3.11.3",
            "version": "3.12.0",
            "source": {
                "type": "git",
                "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
                "reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10"
                "reference": "2d1b63db139c3c6ea0c927698e5160f8b3b8d630"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10",
                "reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10",
                "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/2d1b63db139c3c6ea0c927698e5160f8b3b8d630",
                "reference": "2d1b63db139c3c6ea0c927698e5160f8b3b8d630",
                "shasum": ""
            },
            "require": {
@@ -10641,11 +10641,11 @@
                    "type": "open_collective"
                },
                {
                    "url": "https://thanks.dev/phpcsstandards",
                    "url": "https://thanks.dev/u/gh/phpcsstandards",
                    "type": "thanks_dev"
                }
            ],
            "time": "2025-01-23T17:04:15+00:00"
            "time": "2025-03-18T05:04:51+00:00"
        },
        {
            "name": "symfony/config",
@@ -10724,16 +10724,16 @@
        },
        {
            "name": "symfony/dependency-injection",
            "version": "v7.2.4",
            "version": "v7.2.5",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/dependency-injection.git",
                "reference": "f0a1614cccb4b8431a97076f9debc08ddca321ca"
                "reference": "58ab71379f14a741755717cece2868bf41ed45d8"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/f0a1614cccb4b8431a97076f9debc08ddca321ca",
                "reference": "f0a1614cccb4b8431a97076f9debc08ddca321ca",
                "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/58ab71379f14a741755717cece2868bf41ed45d8",
                "reference": "58ab71379f14a741755717cece2868bf41ed45d8",
                "shasum": ""
            },
            "require": {
@@ -10741,7 +10741,7 @@
                "psr/container": "^1.1|^2.0",
                "symfony/deprecation-contracts": "^2.5|^3",
                "symfony/service-contracts": "^3.5",
                "symfony/var-exporter": "^6.4|^7.0"
                "symfony/var-exporter": "^6.4.20|^7.2.5"
            },
            "conflict": {
                "ext-psr": "<1.1|>=2",
@@ -10784,7 +10784,7 @@
            "description": "Allows you to standardize and centralize the way objects are constructed in your application",
            "homepage": "https://symfony.com",
            "support": {
                "source": "https://github.com/symfony/dependency-injection/tree/v7.2.4"
                "source": "https://github.com/symfony/dependency-injection/tree/v7.2.5"
            },
            "funding": [
                {
@@ -10800,20 +10800,20 @@
                    "type": "tidelift"
                }
            ],
            "time": "2025-02-21T09:47:16+00:00"
            "time": "2025-03-13T12:21:46+00:00"
        },
        {
            "name": "symfony/var-exporter",
            "version": "v7.2.4",
            "version": "v7.2.5",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/var-exporter.git",
                "reference": "4ede73aa7a73d81506002d2caadbbdad1ef5b69a"
                "reference": "c37b301818bd7288715d40de634f05781b686ace"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/var-exporter/zipball/4ede73aa7a73d81506002d2caadbbdad1ef5b69a",
                "reference": "4ede73aa7a73d81506002d2caadbbdad1ef5b69a",
                "url": "https://api.github.com/repos/symfony/var-exporter/zipball/c37b301818bd7288715d40de634f05781b686ace",
                "reference": "c37b301818bd7288715d40de634f05781b686ace",
                "shasum": ""
            },
            "require": {
@@ -10860,7 +10860,7 @@
                "serialize"
            ],
            "support": {
                "source": "https://github.com/symfony/var-exporter/tree/v7.2.4"
                "source": "https://github.com/symfony/var-exporter/tree/v7.2.5"
            },
            "funding": [
                {
@@ -10876,7 +10876,7 @@
                    "type": "tidelift"
                }
            ],
            "time": "2025-02-13T10:27:23+00:00"
            "time": "2025-03-13T12:21:46+00:00"
        },
        {
            "name": "theseer/tokenizer",