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 @@
Inscription n° =$this->Privilege->Num?> du =$date->toString('dd/MM/yyyy')?>, au =$this->Privilege->GreffeLabel?> | ||||
Date de fraicheur | - Privilege->DateFresh,'yyyy-MM-dd')?> + Privilege->DateFresh, 'yyyy-MM-dd')?>=$date->toString('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 | 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 @@||||
Date | Type | -Montant | Créancier | +Montant |
---|---|---|---|---|
=substr($p->Date,8,2).'/'.substr($p->Date,5,2).'/'.substr($p->Date,0,4)?> | =$p->TypeLabel?> | +=$p->CreancierNom?> | =number_format($p->Mt, 2, ',', ' ')?> | -=$p->CreancierNom?> |