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

Refonte STATUT (WIP)

parent 8ec8f006
Loading
Loading
Loading
Loading
+71 −73
Changes for composer.lock: 71 added lines, 73 removed lines.
Original line number Diff line number Diff line
@@ -455,32 +455,31 @@
        },
        {
            "name": "doctrine/common",
            "version": "3.2.x-dev",
            "version": "3.3.x-dev",
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/common.git",
                "reference": "91d90e90950b5a51d337b2f712a2389261fe77a8"
                "reference": "c824e95d4c83b7102d8bc60595445a6f7d540f96"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/common/zipball/91d90e90950b5a51d337b2f712a2389261fe77a8",
                "reference": "91d90e90950b5a51d337b2f712a2389261fe77a8",
                "url": "https://api.github.com/repos/doctrine/common/zipball/c824e95d4c83b7102d8bc60595445a6f7d540f96",
                "reference": "c824e95d4c83b7102d8bc60595445a6f7d540f96",
                "shasum": ""
            },
            "require": {
                "doctrine/persistence": "^2.0",
                "doctrine/persistence": "^2.0 || ^3.0",
                "php": "^7.1 || ^8.0"
            },
            "require-dev": {
                "doctrine/coding-standard": "^9.0",
                "phpstan/phpstan": "^1.2.0",
                "phpstan/phpstan": "^1.4.1",
                "phpstan/phpstan-phpunit": "^1",
                "phpunit/phpunit": "^7.5.20 || ^8.5 || ^9.0",
                "squizlabs/php_codesniffer": "^3.0",
                "symfony/phpunit-bridge": "^4.0.5",
                "vimeo/psalm": "^4.4"
            },
            "default-branch": true,
            "type": "library",
            "autoload": {
                "psr-4": {
@@ -526,7 +525,7 @@
            ],
            "support": {
                "issues": "https://github.com/doctrine/common/issues",
                "source": "https://github.com/doctrine/common/tree/3.2.x"
                "source": "https://github.com/doctrine/common/tree/3.3.x"
            },
            "funding": [
                {
@@ -542,7 +541,7 @@
                    "type": "tidelift"
                }
            ],
            "time": "2022-01-28T10:36:22+00:00"
            "time": "2022-02-05T18:28:51+00:00"
        },
        {
            "name": "doctrine/dbal",
@@ -550,12 +549,12 @@
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/dbal.git",
                "reference": "83addc0e8a229e10ebdd5d2b08f00af538f427a9"
                "reference": "dd19bab05e1163684e6b0b91d13b0ccab62e02bc"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/dbal/zipball/83addc0e8a229e10ebdd5d2b08f00af538f427a9",
                "reference": "83addc0e8a229e10ebdd5d2b08f00af538f427a9",
                "url": "https://api.github.com/repos/doctrine/dbal/zipball/dd19bab05e1163684e6b0b91d13b0ccab62e02bc",
                "reference": "dd19bab05e1163684e6b0b91d13b0ccab62e02bc",
                "shasum": ""
            },
            "require": {
@@ -653,7 +652,7 @@
                    "type": "tidelift"
                }
            ],
            "time": "2022-01-30T19:51:38+00:00"
            "time": "2022-02-06T15:42:46+00:00"
        },
        {
            "name": "doctrine/deprecations",
@@ -906,12 +905,12 @@
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/DoctrineORMModule.git",
                "reference": "772010a96adfba8a3c1df2c8c1b1b87f6c44486e"
                "reference": "2fde822ca1c12353cc253af1bdd7cdd454843baa"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/DoctrineORMModule/zipball/772010a96adfba8a3c1df2c8c1b1b87f6c44486e",
                "reference": "772010a96adfba8a3c1df2c8c1b1b87f6c44486e",
                "url": "https://api.github.com/repos/doctrine/DoctrineORMModule/zipball/2fde822ca1c12353cc253af1bdd7cdd454843baa",
                "reference": "2fde822ca1c12353cc253af1bdd7cdd454843baa",
                "shasum": ""
            },
            "require": {
@@ -920,7 +919,7 @@
                "doctrine/doctrine-laminas-hydrator": "^2.2.1 || ^3.0.0",
                "doctrine/doctrine-module": "^5.0.0",
                "doctrine/event-manager": "^1.1.1",
                "doctrine/orm": "^2.9.6",
                "doctrine/orm": "^2.11.1",
                "doctrine/persistence": "^2.2.3",
                "ext-json": "*",
                "laminas/laminas-eventmanager": "^3.4.0",
@@ -1008,7 +1007,7 @@
            ],
            "support": {
                "issues": "https://github.com/doctrine/DoctrineORMModule/issues",
                "source": "https://github.com/doctrine/DoctrineORMModule/tree/5.0.x"
                "source": "https://github.com/doctrine/DoctrineORMModule/tree/5.1.x"
            },
            "funding": [
                {
@@ -1024,7 +1023,7 @@
                    "type": "tidelift"
                }
            ],
            "time": "2022-01-04T22:23:53+00:00"
            "time": "2022-02-05T11:37:49+00:00"
        },
        {
            "name": "doctrine/event-manager",
@@ -1359,12 +1358,12 @@
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/orm.git",
                "reference": "f8de44c35f990f60680dc1973df3a618f316a35a"
                "reference": "3cfcd4ad130686896b5c24bf4308cb4fda84e7ac"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/orm/zipball/f8de44c35f990f60680dc1973df3a618f316a35a",
                "reference": "f8de44c35f990f60680dc1973df3a618f316a35a",
                "url": "https://api.github.com/repos/doctrine/orm/zipball/3cfcd4ad130686896b5c24bf4308cb4fda84e7ac",
                "reference": "3cfcd4ad130686896b5c24bf4308cb4fda84e7ac",
                "shasum": ""
            },
            "require": {
@@ -1380,7 +1379,6 @@
                "doctrine/lexer": "^1.0",
                "doctrine/persistence": "^2.2",
                "ext-ctype": "*",
                "ext-pdo": "*",
                "php": "^7.1 || ^8.0",
                "psr/cache": "^1 || ^2 || ^3",
                "symfony/console": "^3.0 || ^4.0 || ^5.0 || ^6.0",
@@ -1451,7 +1449,7 @@
                "issues": "https://github.com/doctrine/orm/issues",
                "source": "https://github.com/doctrine/orm/tree/2.12.x"
            },
            "time": "2022-01-31T07:13:10+00:00"
            "time": "2022-02-06T15:07:47+00:00"
        },
        {
            "name": "doctrine/persistence",
@@ -2816,12 +2814,12 @@
            "source": {
                "type": "git",
                "url": "https://github.com/laminas/laminas-hydrator.git",
                "reference": "e181e17b5668417f39eb00810e92bf80b4e8ded6"
                "reference": "abdeedff8d77e3bf2fc82e06b189b42a7a60c853"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/laminas/laminas-hydrator/zipball/e181e17b5668417f39eb00810e92bf80b4e8ded6",
                "reference": "e181e17b5668417f39eb00810e92bf80b4e8ded6",
                "url": "https://api.github.com/repos/laminas/laminas-hydrator/zipball/abdeedff8d77e3bf2fc82e06b189b42a7a60c853",
                "reference": "abdeedff8d77e3bf2fc82e06b189b42a7a60c853",
                "shasum": ""
            },
            "require": {
@@ -2886,7 +2884,7 @@
                    "type": "community_bridge"
                }
            ],
            "time": "2021-09-09T09:56:18+00:00"
            "time": "2022-02-05T12:45:14+00:00"
        },
        {
            "name": "laminas/laminas-i18n",
@@ -3670,12 +3668,12 @@
            "source": {
                "type": "git",
                "url": "https://github.com/laminas/laminas-mvc.git",
                "reference": "7d11bcc603c7e9986fcf701264382d3f763a133c"
                "reference": "e00129958df85fb071e1ff5c931d01df05485c7f"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/laminas/laminas-mvc/zipball/7d11bcc603c7e9986fcf701264382d3f763a133c",
                "reference": "7d11bcc603c7e9986fcf701264382d3f763a133c",
                "url": "https://api.github.com/repos/laminas/laminas-mvc/zipball/e00129958df85fb071e1ff5c931d01df05485c7f",
                "reference": "e00129958df85fb071e1ff5c931d01df05485c7f",
                "shasum": ""
            },
            "require": {
@@ -3744,7 +3742,7 @@
                    "type": "community_bridge"
                }
            ],
            "time": "2022-01-26T21:33:49+00:00"
            "time": "2022-02-02T12:53:57+00:00"
        },
        {
            "name": "laminas/laminas-mvc-i18n",
@@ -4472,12 +4470,12 @@
            "source": {
                "type": "git",
                "url": "https://github.com/laminas/laminas-servicemanager.git",
                "reference": "d609ce1abed497cebad35f59878060110b479697"
                "reference": "727830c989760f6ef5aa830990d7a7533c2ec092"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/laminas/laminas-servicemanager/zipball/d609ce1abed497cebad35f59878060110b479697",
                "reference": "d609ce1abed497cebad35f59878060110b479697",
                "url": "https://api.github.com/repos/laminas/laminas-servicemanager/zipball/727830c989760f6ef5aa830990d7a7533c2ec092",
                "reference": "727830c989760f6ef5aa830990d7a7533c2ec092",
                "shasum": ""
            },
            "require": {
@@ -4551,7 +4549,7 @@
                    "type": "community_bridge"
                }
            ],
            "time": "2022-01-29T01:16:33+00:00"
            "time": "2022-02-07T03:48:38+00:00"
        },
        {
            "name": "laminas/laminas-session",
@@ -4911,12 +4909,12 @@
            "source": {
                "type": "git",
                "url": "https://github.com/laminas/laminas-view.git",
                "reference": "327156569d0dfe2414e6a6d4199cde4b79497fc1"
                "reference": "65edf5c7b87205077a3f54d9640cc6fbc51f52d1"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/laminas/laminas-view/zipball/327156569d0dfe2414e6a6d4199cde4b79497fc1",
                "reference": "327156569d0dfe2414e6a6d4199cde4b79497fc1",
                "url": "https://api.github.com/repos/laminas/laminas-view/zipball/65edf5c7b87205077a3f54d9640cc6fbc51f52d1",
                "reference": "65edf5c7b87205077a3f54d9640cc6fbc51f52d1",
                "shasum": ""
            },
            "require": {
@@ -5008,7 +5006,7 @@
                    "type": "community_bridge"
                }
            ],
            "time": "2022-01-12T17:37:22+00:00"
            "time": "2022-02-01T15:19:34+00:00"
        },
        {
            "name": "mpdf/mpdf",
@@ -5110,12 +5108,12 @@
            "default-branch": true,
            "type": "library",
            "autoload": {
                "psr-4": {
                    "DeepCopy\\": "src/DeepCopy/"
                },
                "files": [
                    "src/DeepCopy/deep_copy.php"
                ]
                ],
                "psr-4": {
                    "DeepCopy\\": "src/DeepCopy/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
@@ -5783,12 +5781,12 @@
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/console.git",
                "reference": "045a69969ae7c54240452dec7399aaedd0476a2b"
                "reference": "af7105cd18fe787a0edcd3ce9f85b51d58fa1e15"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/console/zipball/045a69969ae7c54240452dec7399aaedd0476a2b",
                "reference": "045a69969ae7c54240452dec7399aaedd0476a2b",
                "url": "https://api.github.com/repos/symfony/console/zipball/af7105cd18fe787a0edcd3ce9f85b51d58fa1e15",
                "reference": "af7105cd18fe787a0edcd3ce9f85b51d58fa1e15",
                "shasum": ""
            },
            "require": {
@@ -5870,7 +5868,7 @@
                    "type": "tidelift"
                }
            ],
            "time": "2022-01-27T10:12:23+00:00"
            "time": "2022-01-31T17:00:26+00:00"
        },
        {
            "name": "symfony/deprecation-contracts",
@@ -6053,12 +6051,12 @@
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Polyfill\\Intl\\Grapheme\\": ""
                },
                "files": [
                    "bootstrap.php"
                ]
                ],
                "psr-4": {
                    "Symfony\\Polyfill\\Intl\\Grapheme\\": ""
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
@@ -6136,12 +6134,12 @@
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Polyfill\\Intl\\Idn\\": ""
                },
                "files": [
                    "bootstrap.php"
                ]
                ],
                "psr-4": {
                    "Symfony\\Polyfill\\Intl\\Idn\\": ""
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
@@ -6221,12 +6219,12 @@
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Polyfill\\Intl\\Normalizer\\": ""
                },
                "files": [
                    "bootstrap.php"
                ],
                "psr-4": {
                    "Symfony\\Polyfill\\Intl\\Normalizer\\": ""
                },
                "classmap": [
                    "Resources/stubs"
                ]
@@ -6385,12 +6383,12 @@
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Polyfill\\Php72\\": ""
                },
                "files": [
                    "bootstrap.php"
                ]
                ],
                "psr-4": {
                    "Symfony\\Polyfill\\Php72\\": ""
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
@@ -6461,12 +6459,12 @@
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Polyfill\\Php80\\": ""
                },
                "files": [
                    "bootstrap.php"
                ],
                "psr-4": {
                    "Symfony\\Polyfill\\Php80\\": ""
                },
                "classmap": [
                    "Resources/stubs"
                ]
@@ -6544,12 +6542,12 @@
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Polyfill\\Php81\\": ""
                },
                "files": [
                    "bootstrap.php"
                ],
                "psr-4": {
                    "Symfony\\Polyfill\\Php81\\": ""
                },
                "classmap": [
                    "Resources/stubs"
                ]
@@ -6769,12 +6767,12 @@
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/var-dumper.git",
                "reference": "89d8bba08e70ef0f57ba589309fd2df9df2a606c"
                "reference": "559036f3cd1e8098d02ce62756e896128a5fe2dd"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/var-dumper/zipball/89d8bba08e70ef0f57ba589309fd2df9df2a606c",
                "reference": "89d8bba08e70ef0f57ba589309fd2df9df2a606c",
                "url": "https://api.github.com/repos/symfony/var-dumper/zipball/559036f3cd1e8098d02ce62756e896128a5fe2dd",
                "reference": "559036f3cd1e8098d02ce62756e896128a5fe2dd",
                "shasum": ""
            },
            "require": {
@@ -6849,7 +6847,7 @@
                    "type": "tidelift"
                }
            ],
            "time": "2022-01-17T16:30:50+00:00"
            "time": "2022-02-04T19:03:54+00:00"
        },
        {
            "name": "unicaen/app",
+13 −13
Changes for data/ddl/package/OSE_WORKFLOW/body.sql: 13 added lines, 13 removed lines.
Original line number Diff line number Diff line
@@ -362,10 +362,10 @@ CREATE OR REPLACE PACKAGE BODY OSE_WORKFLOW AS
  BEGIN
    dems := '
        WHEN e.code = ''DONNEES_PERSO_SAISIE'' OR e.code = ''DONNEES_PERSO_VALIDATION'' THEN
          si.peut_saisir_dossier
          si.dossier

        WHEN e.code = ''SERVICE_SAISIE'' THEN
          CASE WHEN si.peut_saisir_service + si.peut_saisir_referentiel = 0 THEN 0 ELSE 1 END
          CASE WHEN si.service + si.referentiel = 0 THEN 0 ELSE 1 END

        WHEN e.code = ''PJ_SAISIE'' OR e.code = ''PJ_VALIDATION'' THEN
          CASE WHEN EXISTS(
@@ -374,10 +374,10 @@ CREATE OR REPLACE PACKAGE BODY OSE_WORKFLOW AS
          ) THEN 1 ELSE 0 END

        WHEN e.code = ''SERVICE_VALIDATION'' THEN
          si.peut_saisir_service
          si.service

        WHEN e.code = ''REFERENTIEL_VALIDATION'' THEN
          si.peut_saisir_referentiel
          si.referentiel

        WHEN e.code = ''CONSEIL_ACADEMIQUE'' OR e.code = ''CONSEIL_RESTREINT'' THEN
          CASE WHEN EXISTS(
@@ -389,19 +389,19 @@ CREATE OR REPLACE PACKAGE BODY OSE_WORKFLOW AS
          ) THEN 1 ELSE 0 END

        WHEN e.code = ''CONTRAT'' THEN
          si.peut_avoir_contrat
          si.contrat

        WHEN e.code = ''SERVICE_SAISIE_REALISE'' OR e.code = ''DEMANDE_MEP'' OR e.code = ''SAISIE_MEP'' THEN
          CASE WHEN si.peut_saisir_service + si.peut_saisir_referentiel = 0 THEN 0 ELSE 1 END
          CASE WHEN si.service + si.referentiel = 0 THEN 0 ELSE 1 END

        WHEN e.code = ''CLOTURE_REALISE'' THEN
          si.peut_cloturer_saisie
          si.cloture

        WHEN e.code = ''SERVICE_VALIDATION_REALISE'' THEN
          si.peut_saisir_service
          si.service

        WHEN e.code = ''REFERENTIEL_VALIDATION_REALISE'' THEN
          si.peut_saisir_referentiel
          si.referentiel
    ';


@@ -441,7 +441,7 @@ CREATE OR REPLACE PACKAGE BODY OSE_WORKFLOW AS
          ) e ON 1=1
        WHERE
          ' || unicaen_tbl.MAKE_WHERE(param, value) || '
          AND d.peut_saisir_dossier = 1
          AND d.dossier = 1
    ';


@@ -468,7 +468,7 @@ CREATE OR REPLACE PACKAGE BODY OSE_WORKFLOW AS
          ) e ON 1=1
        WHERE
          ' || unicaen_tbl.MAKE_WHERE(param, value) || '
          AND (tss.peut_saisir_service = 1 OR tss.peut_saisir_referentiel = 1)
          AND (tss.service = 1 OR tss.referentiel = 1)
    ';


@@ -589,7 +589,7 @@ CREATE OR REPLACE PACKAGE BODY OSE_WORKFLOW AS
          tbl_cloture_realise c
        WHERE
          ' || unicaen_tbl.MAKE_WHERE(param, value) || '
          AND c.peut_cloturer_saisie = 1
          AND c.has_cloture = 1
    ';


@@ -650,7 +650,7 @@ CREATE OR REPLACE PACKAGE BODY OSE_WORKFLOW AS
          JOIN parametre p on p.nom = ''contrat_regle_franchissement''
        WHERE
          ' || unicaen_tbl.MAKE_WHERE(param, value) || '
          AND peut_avoir_contrat = 1
          AND contrat = 1
          AND nbvh > 0
    ';

+34 −34

File changed.

Preview size limit exceeded, changes collapsed.

+571 −77

File changed.

Preview size limit exceeded, changes collapsed.

+9 −9
Changes for data/ddl/table/STRUCTURE.php: 9 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 16,
            'position'    => 15,
            'commentaire' => NULL,
        ],
        'ADRESSE_COMMUNE'         => [
@@ -30,7 +30,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 17,
            'position'    => 16,
            'commentaire' => NULL,
        ],
        'ADRESSE_LIEU_DIT'        => [
@@ -42,7 +42,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 18,
            'position'    => 17,
            'commentaire' => NULL,
        ],
        'ADRESSE_NUMERO'          => [
@@ -54,7 +54,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 19,
            'position'    => 18,
            'commentaire' => NULL,
        ],
        'ADRESSE_NUMERO_COMPL_ID' => [
@@ -66,7 +66,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 20,
            'position'    => 19,
            'commentaire' => NULL,
        ],
        'ADRESSE_PAYS_ID'         => [
@@ -78,7 +78,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 21,
            'position'    => 20,
            'commentaire' => NULL,
        ],
        'ADRESSE_PRECISIONS'      => [
@@ -90,7 +90,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 22,
            'position'    => 21,
            'commentaire' => NULL,
        ],
        'ADRESSE_VOIE'            => [
@@ -102,7 +102,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 23,
            'position'    => 22,
            'commentaire' => NULL,
        ],
        'ADRESSE_VOIRIE_ID'       => [
@@ -114,7 +114,7 @@ return [
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 24,
            'position'    => 23,
            'commentaire' => NULL,
        ],
        'AFF_ADRESSE_CONTRAT'     => [
Loading