diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index e690178fb66..8eee4e2ba82 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -652,7 +652,7 @@ class Commande /* * */ - $sql = "UPDATE ".MAIN_DB_PREFIX."commande set amount_ht=$totalht, total_ht=$totalht, tva=$totaltva, total_ttc=$totalttc, remise=$total_remise WHERE rowid = $this->id"; + $sql = "UPDATE ".MAIN_DB_PREFIX."commande set amount_ht='$totalht', total_ht='$totalht', tva='$totaltva', total_ttc='$totalttc', remise='$total_remise' WHERE rowid = $this->id"; if ( $this->db->query($sql) ) { return 1;