modification de la visibilité des rapports confidentiels
This commit is contained in:
parent
5313c9265b
commit
a0ebfe4d14
@ -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;
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user