modification de la visibilité des rapports confidentiels

This commit is contained in:
benoitpotier 2017-03-21 09:47:05 +01:00
parent 5313c9265b
commit a0ebfe4d14
2 changed files with 7 additions and 6 deletions

View File

@ -852,6 +852,7 @@ class FinanceController extends Zend_Controller_Action
$this->view->assign('raisonSociale', $entreprise->getRaisonSociale());
$this->view->assign('siren', substr($this->siret, 0, 9));
$this->view->assign('siret', $this->siret);
$this->view->assign('idClient', $user->identity->idClient);
$this->view->haveLiasse = ($bilanList->nbReponses > 0) ? true : false;

View File

@ -92,13 +92,13 @@ switch ($type) {
$date = new Zend_Date($element->dateExercicePre, 'yyyyMMdd');
echo $date->toString('dd/MM/yyyy');
} ?> - <?php if ($element->dureeExercicePre > 0) {?><?=$element->dureeExercicePre?> Mois<?php } ?></td>
<td><?php if (0 < $element->confidentiel) : ?>
Confidentiel
<?php else :?>
<td><?php if ($this->idClient == 1 || ($this->idClient == $element->confidentiel || 0 == $element->confidentiel)) : ?>
<a href="<?=$this->url(array('controller'=>'finance', 'action'=>'liasse',
'siret'=>$this->siret, 'id'=>$this->id, 'date'=> $type.$element->dateExercice), 'default', true)?>">
Visualiser
</a>
<?php else :?>
Confidentiel
<?php endif; ?>
</td>
</tr>
@ -155,12 +155,12 @@ switch ($type) {
?>
- <?php if ($element->dureeExercicePre > 0) {?><?=$element->dureeExercicePre?> Mois<?php } ?>
</td>
<td><?php if (0 < $element->confidentiel) : ?>
Confidentiel
<?php else :?>
<td><?php if ($this->idClient == 1 || ($this->idClient == $element->confidentiel || 0 == $element->confidentiel)) : ?>
<a href="<?=$this->url(array('controller'=>'finance', 'action'=>'liasse', 'siret'=>$this->siret,
'id'=>$this->id, 'date'=> $type.$element->dateExercice), 'default', true)?>">
Visualiser</a>
<?php else :?>
Confidentiel
<?php endif; ?>
</td>
</tr>