diff --git a/application/modules/default/controllers/IdentiteController.php b/application/modules/default/controllers/IdentiteController.php index ad95898dd..8ed93c17b 100644 --- a/application/modules/default/controllers/IdentiteController.php +++ b/application/modules/default/controllers/IdentiteController.php @@ -2279,10 +2279,11 @@ class IdentiteController extends Zend_Controller_Action $this->view->assign('adresse', $session->getAdresse()); if ($this->view->hasRight) { - $ws = new Scores_Ws_Client('entreprise', '0.9'); + $source = str_pad($session->getSource(), 3, '0', STR_PAD_LEFT); + $sourceId = str_pad($session->getSourceId(), 17, '0', STR_PAD_LEFT); + $ws = new Scores_Ws_Client('entreprise', '0.9'); $params = new stdClass(); - $params->companyId = $this->siret; - $params->type = 'siren'; + $params->companyId = $source . $sourceId; $response = $ws->getRNVP($params); if ($response === false) { $this->view->Error = true; diff --git a/application/modules/default/views/default/scripts/pieces/privilegedetail.phtml b/application/modules/default/views/default/scripts/pieces/privilegedetail.phtml index 41d216e20..d17b4fc78 100644 --- a/application/modules/default/views/default/scripts/pieces/privilegedetail.phtml +++ b/application/modules/default/views/default/scripts/pieces/privilegedetail.phtml @@ -24,7 +24,7 @@
- Privilege->Date,'yyyy-MM-dd')?> + Privilege->Date,'yyyy-MM-dd');?> @@ -46,9 +46,27 @@ - Privilege->DateFresh,'yyyy-MM-dd')?> + Privilege->DateFresh, 'yyyy-MM-dd')?> +Privilege->RadiationDate == '0000-00-00' && empty($this->Privilege->RadiationPartiel)) {?> + + + + +Privilege->RadiationDate) && $this->Privilege->RadiationDate!='0000-00-00' diff --git a/application/modules/default/views/default/scripts/pieces/privileges.phtml b/application/modules/default/views/default/scripts/pieces/privileges.phtml index 879411845..e65e663be 100644 --- a/application/modules/default/views/default/scripts/pieces/privileges.phtml +++ b/application/modules/default/views/default/scripts/pieces/privileges.phtml @@ -59,8 +59,8 @@ - + @@ -68,11 +68,11 @@ + -
Inscription n° Privilege->Num?> du toString('dd/MM/yyyy')?>, au Privilege->GreffeLabel?>
Date de fraicheurtoString('dd/MM/yyyy')?>
Date de fin + Privilege->Date, 'yyyy-MM-dd'); ?> + Privilege->Type) { + case '03': + echo $date->addDay(900)->toString('dd/MM/yyyy'); + break; + case '04': + echo $date->addDay(1460)->toString('dd/MM/yyyy'); + break; + } + ?> +
Compléments
Date TypeMontant CréancierMontant
Date,8,2).'/'.substr($p->Date,5,2).'/'.substr($p->Date,0,4)?> TypeLabel?>CreancierNom?> Mt, 2, ',', ' ')?> CreancierNom?>