correction d'erreur php

This commit is contained in:
Damien LASSERRE 2011-06-30 12:02:08 +00:00
parent f3b9de1056
commit dbaa3a7aee

View File

@ -938,6 +938,7 @@ class PiecesController extends Zend_Controller_Action
*/
public function commandeAction()
{
$request = $this->getRequest();
$this->view->headLink()->appendStylesheet('/themes/default/styles/pieces.css', 'all');
$this->view->headScript()->appendFile('/themes/default/scripts/pieces.js', 'text/javascript');
@ -1014,7 +1015,7 @@ class PiecesController extends Zend_Controller_Action
'adresse' => '',
'cp' => '',
'ville' => '',
'siren' => substr($this->siret,0,9);
'siren' => substr($this->siret,0,9),
'raisonSociale' => $this->entrep->getRaisonSociale(),
'type' => 'M',
'dateCommande' => date('Y-m-d H:i:s'),
@ -1077,7 +1078,7 @@ class PiecesController extends Zend_Controller_Action
'adresse' => $params['adresse'],
'cp' => $params['cp'],
'ville' => $params['ville'],
'siren' => substr($this->siret,0,9);
'siren' => substr($this->siret,0,9),
'raisonSociale' => $this->entrep->getRaisonSociale(),
'type' => 'C',
'dateCommande' => date('Y-m-d H:i:s'),