From dc040950b466bb0d89920c1e5c7b38d8b4595433 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 27 Jun 2006 09:11:14 +0000 Subject: [PATCH] Fix: erreur sql si pas de date de livraison --- htdocs/commande/commande.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."')";