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('raisonSociale', $entreprise->getRaisonSociale());
|
||||||
$this->view->assign('siren', substr($this->siret, 0, 9));
|
$this->view->assign('siren', substr($this->siret, 0, 9));
|
||||||
$this->view->assign('siret', $this->siret);
|
$this->view->assign('siret', $this->siret);
|
||||||
|
$this->view->assign('idClient', $user->identity->idClient);
|
||||||
|
|
||||||
$this->view->haveLiasse = ($bilanList->nbReponses > 0) ? true : false;
|
$this->view->haveLiasse = ($bilanList->nbReponses > 0) ? true : false;
|
||||||
|
|
||||||
|
@ -92,13 +92,13 @@ switch ($type) {
|
|||||||
$date = new Zend_Date($element->dateExercicePre, 'yyyyMMdd');
|
$date = new Zend_Date($element->dateExercicePre, 'yyyyMMdd');
|
||||||
echo $date->toString('dd/MM/yyyy');
|
echo $date->toString('dd/MM/yyyy');
|
||||||
} ?> - <?php if ($element->dureeExercicePre > 0) {?><?=$element->dureeExercicePre?> Mois<?php } ?></td>
|
} ?> - <?php if ($element->dureeExercicePre > 0) {?><?=$element->dureeExercicePre?> Mois<?php } ?></td>
|
||||||
<td><?php if (0 < $element->confidentiel) : ?>
|
<td><?php if ($this->idClient == 1 || ($this->idClient == $element->confidentiel || 0 == $element->confidentiel)) : ?>
|
||||||
Confidentiel
|
|
||||||
<?php else :?>
|
|
||||||
<a href="<?=$this->url(array('controller'=>'finance', 'action'=>'liasse',
|
<a href="<?=$this->url(array('controller'=>'finance', 'action'=>'liasse',
|
||||||
'siret'=>$this->siret, 'id'=>$this->id, 'date'=> $type.$element->dateExercice), 'default', true)?>">
|
'siret'=>$this->siret, 'id'=>$this->id, 'date'=> $type.$element->dateExercice), 'default', true)?>">
|
||||||
Visualiser
|
Visualiser
|
||||||
</a>
|
</a>
|
||||||
|
<?php else :?>
|
||||||
|
Confidentiel
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -155,12 +155,12 @@ switch ($type) {
|
|||||||
?>
|
?>
|
||||||
- <?php if ($element->dureeExercicePre > 0) {?><?=$element->dureeExercicePre?> Mois<?php } ?>
|
- <?php if ($element->dureeExercicePre > 0) {?><?=$element->dureeExercicePre?> Mois<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
<td><?php if (0 < $element->confidentiel) : ?>
|
<td><?php if ($this->idClient == 1 || ($this->idClient == $element->confidentiel || 0 == $element->confidentiel)) : ?>
|
||||||
Confidentiel
|
|
||||||
<?php else :?>
|
|
||||||
<a href="<?=$this->url(array('controller'=>'finance', 'action'=>'liasse', 'siret'=>$this->siret,
|
<a href="<?=$this->url(array('controller'=>'finance', 'action'=>'liasse', 'siret'=>$this->siret,
|
||||||
'id'=>$this->id, 'date'=> $type.$element->dateExercice), 'default', true)?>">
|
'id'=>$this->id, 'date'=> $type.$element->dateExercice), 'default', true)?>">
|
||||||
Visualiser</a>
|
Visualiser</a>
|
||||||
|
<?php else :?>
|
||||||
|
Confidentiel
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user