Mise a jours de Giant avec quelques nouvelles fonctionnalités
This commit is contained in:
parent
8463a7a3b6
commit
d9a9f199e9
@ -103,15 +103,10 @@ Class GiantRechercheController extends GiantFunctionController
|
||||
|
||||
public function GetRapport($CompanyId, $DataSetType)
|
||||
{
|
||||
$cache = new Cache('giant-'.$DataSetType.'-'.$CompanyId);
|
||||
if(!$cache->exist()) {
|
||||
$this->CreditData = new CreditData($this->soapG, $CompanyId);
|
||||
$result = $this->CreditData->getMethode('OrderDataSet', array($DataSetType));
|
||||
$result = $this->CreditData->getMethode('RetrieveDataSet', array($result->Order->InternalOrderId));
|
||||
$cache->setBlock($result);
|
||||
} else {
|
||||
$result = $cache->getBlock();
|
||||
}
|
||||
$this->CreditData = new CreditData($this->soapG, $CompanyId);
|
||||
$result = $this->CreditData->getMethode('OrderDataSet', array($DataSetType));
|
||||
$result = $this->CreditData->getMethode('RetrieveDataSet', array($result->Order->InternalOrderId));
|
||||
$cache->setBlock($result);
|
||||
return ($result);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user