Commit 72ff051b authored by Stéphane Bouvry's avatar Stéphane Bouvry
Browse files

Patch : Configuration de la répartition horaire OBLIGATOIRE en locale

parent ab61637a
Loading
Loading
Loading
Loading
+0 −37
Changes for config/autoload/global.php: 0 added lines, 37 removed lines.
Original line number Diff line number Diff line
@@ -179,43 +179,6 @@ return array(
            ],
        ],

        // Configuration des cas particuliers (LABS)
        'declarationsDurations' => [
            
            'dayLength'     => [
                'value' => 7.5,
                'max' => 10.0,
                'min' => 5.0,
                'days' => [
                    '1' => 8.0,
                    '2' => 8.0,
                    '3' => 8.0,
                    '4' => 8.0,
                    '5' => 8.0,
                    '6' => 0.0,
                    '7' => 0.0,
                ]
            ],

            'weekLength'     => [
                'value' => 37.0,
                'max' => 44.0,
                'min' => 20.0,
                'userChange' => false
            ],

            'monthLength' => [
                'value' => 144.0,
                'max'   => 184.0,
                'min' => 80.0,
                'userChange' => false
            ],

            'weekExceptions' => [
                '3'         => 3.0,
            ],
        ],



        'horslots' => [
+37 −0
Changes for config/autoload/local.php.dist: 37 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -39,6 +39,43 @@ return array(
            /****/
        ],

        // Répartition horaire
        'declarationsDurations' => [

            'dayLength'     => [
                'value' => 7.5,
                'max' => 10.0,
                'min' => 5.0,
                'days' => [
                    '1' => 8.0,
                    '2' => 8.0,
                    '3' => 8.0,
                    '4' => 8.0,
                    '5' => 8.0,
                    '6' => 0.0,
                    '7' => 0.0,
                ]
            ],

            'weekLength'     => [
                'value' => 37.0,
                'max' => 44.0,
                'min' => 20.0,
                'userChange' => false
            ],

            'monthLength' => [
                'value' => 144.0,
                'max'   => 184.0,
                'min' => 80.0,
                'userChange' => false
            ],

            'weekExceptions' => [
                '3'         => 3.0,
            ],
        ],


        ////////////////////////////////////////////////////////////////////////
        //
+51 −0
Changes for version-2.8.md: 51 added lines, 0 removed lines.
Original line number Diff line number Diff line
# version 2.8 "Callahan" (Janvier 2019)

## Configuration du temps

La configuration de la répartition horaire par défaut **A ÉTÉ SUPPRIMÉE**. Il faut obligatoirement la déclarer dans la configuration locale : 

```php
<?php
// config/autoload/local.php
return array(
    // ...
    'oscar' => [
        // Répartition horaire
        'declarationsDurations' => [

            'dayLength'     => [
                'value' => 7.5,
                'max' => 10.0,
                'min' => 5.0,
                'days' => [
                    '1' => 8.0,
                    '2' => 8.0,
                    '3' => 8.0,
                    '4' => 8.0,
                    '5' => 8.0,
                    '6' => 0.0,
                    '7' => 0.0,
                ]
            ],

            'weekLength'     => [
                'value' => 37.0,
                'max' => 44.0,
                'min' => 20.0,
                'userChange' => false
            ],

            'monthLength' => [
                'value' => 144.0,
                'max'   => 184.0,
                'min' => 80.0,
                'userChange' => false
            ],

            'weekExceptions' => [
                '3'         => 3.0,
            ],
        ],
    ]
);
```



## Code des LOTS de TRAVAIL obligatoire