diff --git a/application/modules/achatclient/controllers/IndexController.php b/application/modules/achatclient/controllers/IndexController.php index 447f2df67..abbe9541b 100644 --- a/application/modules/achatclient/controllers/IndexController.php +++ b/application/modules/achatclient/controllers/IndexController.php @@ -53,8 +53,8 @@ class Achatclient_IndexController extends Zend_Controller_Action $this->error('index','Fonction indisponible'); } $ws = new Scores_Ws_Client('credit', '0.1'); + $infocredit = $ws->infoCredit(); try { - $infocredit = $ws->infoCredit(); } catch(Exception $e) { $this->error('index','Pas de crédit'); } @@ -168,25 +168,11 @@ class Achatclient_IndexController extends Zend_Controller_Action } public function pbanswerAction(){ - $request = $this->getRequest(); - var_dump($request);die; $user = new Scores_Utilisateur(); - $ok=$user->checkperm($this->libdroits); - if(!$ok){ - $this->view->msg='Problème d\'autentification'; - } - if(empty($this->view->msg)){ - $this->view->msg='Annulation de votre transaction'; - } - switch($answer){ - case "error": - return; - break; - } - if(empty($this->view->msg)){ - $this->view->msg='Annulation de votre transaction'; - } - + echo $user->identity->siret;die; + $ws = new Scores_Ws_Client('credit', '0.1'); + $infocredit = $ws->canUse('synthese'); + var_dump($infocredit);die; } public function errorAction(){ $request = $this->getRequest(); diff --git a/application/modules/achatclient/views/default/scripts/index/error.phtml b/application/modules/achatclient/views/default/scripts/index/error.phtml index 880fe6b70..d0793da8e 100644 --- a/application/modules/achatclient/views/default/scripts/index/error.phtml +++ b/application/modules/achatclient/views/default/scripts/index/error.phtml @@ -17,6 +17,7 @@ td.nbr{