diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index e2e82ae39d9..e3a816268b6 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -371,7 +371,7 @@ class Commande extends CommonObject $sql.= ' '.$this->source.', '; $sql.= " '".addslashes($this->note)."', "; $sql.= " '".addslashes($this->ref_client)."', '".$this->modelpdf."', '".$this->cond_reglement_id."', '".$this->mode_reglement_id."',"; - $sql.= ' '.($this->date_livraison?$this->db->idate($this->date_livraison):'null').','; + $sql.= " '".($this->date_livraison?$this->db->idate($this->date_livraison):'null')."',"; $sql.= " '".$this->adresse_livraison_id."',"; $sql.= " '".$this->remise_absolue."',"; $sql.= " '".$this->remise_percent."')";