Commit 60f33351 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction pour bonne prise en compte requête de paramétrage contrat

parent 7da36142
......@@ -173,16 +173,14 @@ class ModeleContratService extends AbstractEntityService
/**
* @return string
*/
public
function getModeleGeneriqueFile(): string
public function getModeleGeneriqueFile(): string
{
return getcwd() . '/data/modele_contrat.odt';
}
private
function generateData(ModeleContrat $modele, Contrat $contrat)
private function generateData(ModeleContrat $modele, Contrat $contrat)
{
$connection = $this->getEntityManager()->getConnection();
......@@ -192,9 +190,9 @@ class ModeleContratService extends AbstractEntityService
if ($modele->getRequete()) {
$mainDataPerso = $connection->fetchAssociative($modele->getRequete(), $params);
foreach ($mainDataPerso as $key => $value) {
if ($value) {
$mainData[$key] = $value;
}
// if ($value) {
$mainData[$key] = $value;
// }
}
}
......@@ -237,8 +235,7 @@ class ModeleContratService extends AbstractEntityService
private
function getRank(ModeleContrat $modele, Contrat $contrat)
private function getRank(ModeleContrat $modele, Contrat $contrat)
{
$rank = 100;
......@@ -268,8 +265,7 @@ class ModeleContratService extends AbstractEntityService
*
* @return string
*/
public
function getAlias()
public function getAlias()
{
return 'modele_contrat';
}
......@@ -279,8 +275,7 @@ class ModeleContratService extends AbstractEntityService
/**
* @return array
*/
public
function getConfig()
public function getConfig()
{
return $this->config;
}
......@@ -292,8 +287,7 @@ class ModeleContratService extends AbstractEntityService
*
* @return ModeleContratService
*/
public
function setConfig(array $config): ModeleContratService
public function setConfig(array $config): ModeleContratService
{
$this->config = $config;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment