issue #0001541 : Quelques petites corrections
This commit is contained in:
parent
151bf747a5
commit
4781f69a32
@ -215,12 +215,12 @@ class PiecesController extends Zend_Controller_Action
|
||||
$nbPage = 0;
|
||||
if ( $item->FileNumberOfPages > 0 ) {
|
||||
$nbPage = $item->FileNumberOfPages;
|
||||
} elseif ( $item->ActeNumberOfPage > 0 ) {
|
||||
$nbPage = $item->ActeNumberOfPage;
|
||||
} elseif ( $item->ActeNumberOfPages > 0 ) {
|
||||
$nbPage = $item->ActeNumberOfPages;
|
||||
}
|
||||
if( $nbPage > 1 ) {
|
||||
$data.= '<br/>Document de '.$nbPage.' pages.';
|
||||
} elseif( $nbPage ==1) {
|
||||
} elseif( $nbPage == 1 ) {
|
||||
$data.= '<br/>Document de '.$nbPage.' page.';
|
||||
}
|
||||
|
||||
@ -409,7 +409,7 @@ class PiecesController extends Zend_Controller_Action
|
||||
//Télécharger le fichier
|
||||
case 'T':
|
||||
$response = $ws->getPiecesBilan($siren, $type, $mode, $dateCloture);
|
||||
if ($response===false) {
|
||||
if ( $response === false || $response == '' ) {
|
||||
$this->view->assign('msg', "Fichier introuvable.");
|
||||
} else {
|
||||
try {
|
||||
@ -506,7 +506,7 @@ class PiecesController extends Zend_Controller_Action
|
||||
//Enregistrement de la commande
|
||||
$response = $ws->getPiecesActe($siren, $mode, $depotNum, $depotDate, $acteType, $acteNum, $acteDate, $ref);
|
||||
if ($response===false) {
|
||||
$this->view->assign('msg', "Erreur lors du passage de la commande.");
|
||||
$this->view->assign('msg',"Erreur lors du passage de la commande.");
|
||||
} else {
|
||||
$this->view->assign('msg',"Enregistrement de votre commande sous la référence ".strtoupper($response).".");
|
||||
}
|
||||
@ -515,7 +515,7 @@ class PiecesController extends Zend_Controller_Action
|
||||
//Télécharger le fichier
|
||||
case 'T':
|
||||
$response = $ws->getPiecesActe($siren, $mode, $depotNum, $depotDate, $acteType, $acteNum, $acteDate);
|
||||
if ($response===false) {
|
||||
if ( $response === false || $response == '' ) {
|
||||
$this->view->assign('msg', "Fichier introuvable.");
|
||||
} else {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user