Commit 6b7c4378 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Up : Application des modifications proposées par Aurélien Brahim pour la...

Up : Application des modifications proposées par Aurélien Brahim pour la génération de le feuille de temps,
La modification permet de modifier le texte "Université de Caen" en se basant sur la configuration, la clef
organisation peut être ajoutée dans config/autoload/local.php avec ce type d'informations :
'organisation' => [
        'name'      => 'Université de Caen',
        'fullname'  => '',
        'adress'    => '',
    ],
parent 23fc2ae4
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -48,6 +48,12 @@ $settings = array(
        'informatiqueEtLibertes' => 'http://www.unicaen.fr/outils-portail-institutionnel/informatique-et-libertes/',
    ),

    'organisation' => [
        'name'      => 'Université de Caen',
        'fullname'  => '',
        'adress'    => '',
    ],

    'hostlocalization' => [
        'activated' => "",
        'proxies' => "",
+6 −1
Original line number Diff line number Diff line
@@ -1444,9 +1444,14 @@ class TimesheetController extends AbstractOscarController
            $dateStart = new \DateTime($period . '-01');
            $dateEnd = new \DateTime($period . '-01');

            $conf    = $this->getOscarConfigurationService()->getConfigArray();
            $etbName = '';
            if ( isset( $conf['unicaen-app']['organisation']['name'] ) )
                $etbName = $conf['unicaen-app']['organisation']['name'];

            $spreadsheet->getActiveSheet()->setCellValue('A1', "Déclaration");
            $spreadsheet->getActiveSheet()->setCellValue('C3', (string)$person);
            $spreadsheet->getActiveSheet()->setCellValue('C4', 'Université de Caen');
            $spreadsheet->getActiveSheet()->setCellValue('C4', $etbName );
            $spreadsheet->getActiveSheet()->setCellValue('C5', $datas['acronyms']);
            $spreadsheet->getActiveSheet()->setCellValue('C15', $datas['commentaires']);