diff --git a/includes/giant/RapportGiant.php b/includes/giant/RapportGiant.php index 6c11e665d..f78ff46f4 100644 --- a/includes/giant/RapportGiant.php +++ b/includes/giant/RapportGiant.php @@ -54,8 +54,8 @@ $rapportExists = Doctrine_Query::create() ->andWhere('DataSetType = "'. $_GET['type'].'"') ->fetchOne(); -if (!file_exists($rapportExists->UrlObjectRapportFile)) { - echo 'rentre';exit; +if (empty($rapportExists->CompanyId)) { + $nameFileRapport = 'rapport-'.date('Y-m-d').'-'.$_GET['pays'].'-'.$_GET['company'].'-'.$_GET['type']; $soap_client2 = getClient($_GET['pays'], 'RetrieveDataSet');