Loading composer.json +1 −1 Changes for composer.json: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -19,6 +19,6 @@ "unicaen/code" : "1.1.6", "unicaen/import" : "1.1.6", "unicaen/tbl" : "1.0.3", "unicaen/open-document" : "1.1" "unicaen/open-document" : "1.2" } } composer.lock +4 −4 Changes for composer.lock: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], "content-hash": "2d8484ab3ebb905c81684d9433a4de9f", "content-hash": "e7972a11d4dffeb69c9eea361d635016", "packages": [ { "name": "bjyoungblood/bjy-authorize", Loading Loading @@ -1584,11 +1584,11 @@ }, { "name": "unicaen/open-document", "version": "1.1", "version": "1.2", "source": { "type": "git", "url": "https://git.unicaen.fr/lib/unicaen/open-document.git", "reference": "a5caafa705ce6e30da2ef44d45f0531c9e931e2a" "reference": "3c3684202d0f845b3d16cce0015a85dcd4d90f4f" }, "type": "library", "autoload": { Loading @@ -1600,7 +1600,7 @@ ] }, "description": "Module Unicaen de traitement des fichiers au format OpenDocument", "time": "2018-09-19T14:53:12+00:00" "time": "2018-09-20T13:39:51+00:00" }, { "name": "unicaen/oracle", Loading module/Application/src/Application/Service/ModeleContratService.php +15 −1 Changes for module/Application/src/Application/Service/ModeleContratService.php: 15 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ class ModeleContratService extends AbstractEntityService if ($contrat->estUnProjet()){ $document->getStylist()->addFiligrane('PROJET'); } $document->getPublisher()->setAutoBreak(true); $document->publish($this->generateData($modele, $contrat)); $document->setPdfOutput(true); $document->download($fileName); Loading @@ -87,7 +88,9 @@ class ModeleContratService extends AbstractEntityService $connection = $this->getEntityManager()->getConnection(); $params = ['contrat' => $contrat->getId()]; $data = [0 => $connection->fetchAssoc($modele->getRequete(), $params)]; $mainData = $connection->fetchAssoc($modele->getRequete(), $params); $data = [0 => $mainData]; $blocs = $modele->getBlocs(); foreach($blocs as $bname => $bquery){ Loading @@ -96,6 +99,17 @@ class ModeleContratService extends AbstractEntityService $data[0][$bkey] = $bdata; } $data[1] = $data[0]; if (isset($mainData['exemplaire1'])){ $data[0]['exemplaire'] = $mainData['exemplaire1']; unset($mainData['exemplaire1']); } if (isset($mainData['exemplaire2'])){ $data[1]['exemplaire'] = $mainData['exemplaire2']; unset($mainData['exemplaire2']); } return $data; } Loading Loading
composer.json +1 −1 Changes for composer.json: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -19,6 +19,6 @@ "unicaen/code" : "1.1.6", "unicaen/import" : "1.1.6", "unicaen/tbl" : "1.0.3", "unicaen/open-document" : "1.1" "unicaen/open-document" : "1.2" } }
composer.lock +4 −4 Changes for composer.lock: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], "content-hash": "2d8484ab3ebb905c81684d9433a4de9f", "content-hash": "e7972a11d4dffeb69c9eea361d635016", "packages": [ { "name": "bjyoungblood/bjy-authorize", Loading Loading @@ -1584,11 +1584,11 @@ }, { "name": "unicaen/open-document", "version": "1.1", "version": "1.2", "source": { "type": "git", "url": "https://git.unicaen.fr/lib/unicaen/open-document.git", "reference": "a5caafa705ce6e30da2ef44d45f0531c9e931e2a" "reference": "3c3684202d0f845b3d16cce0015a85dcd4d90f4f" }, "type": "library", "autoload": { Loading @@ -1600,7 +1600,7 @@ ] }, "description": "Module Unicaen de traitement des fichiers au format OpenDocument", "time": "2018-09-19T14:53:12+00:00" "time": "2018-09-20T13:39:51+00:00" }, { "name": "unicaen/oracle", Loading
module/Application/src/Application/Service/ModeleContratService.php +15 −1 Changes for module/Application/src/Application/Service/ModeleContratService.php: 15 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ class ModeleContratService extends AbstractEntityService if ($contrat->estUnProjet()){ $document->getStylist()->addFiligrane('PROJET'); } $document->getPublisher()->setAutoBreak(true); $document->publish($this->generateData($modele, $contrat)); $document->setPdfOutput(true); $document->download($fileName); Loading @@ -87,7 +88,9 @@ class ModeleContratService extends AbstractEntityService $connection = $this->getEntityManager()->getConnection(); $params = ['contrat' => $contrat->getId()]; $data = [0 => $connection->fetchAssoc($modele->getRequete(), $params)]; $mainData = $connection->fetchAssoc($modele->getRequete(), $params); $data = [0 => $mainData]; $blocs = $modele->getBlocs(); foreach($blocs as $bname => $bquery){ Loading @@ -96,6 +99,17 @@ class ModeleContratService extends AbstractEntityService $data[0][$bkey] = $bdata; } $data[1] = $data[0]; if (isset($mainData['exemplaire1'])){ $data[0]['exemplaire'] = $mainData['exemplaire1']; unset($mainData['exemplaire1']); } if (isset($mainData['exemplaire2'])){ $data[1]['exemplaire'] = $mainData['exemplaire2']; unset($mainData['exemplaire2']); } return $data; } Loading