diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 0a4c8ee9612..51d5e4c4bd7 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -497,7 +497,7 @@ class Commande $sql = 'INSERT INTO '.MAIN_DB_PREFIX.'commandedet (fk_commande,label,description,fk_product, price,qty,tva_tx, remise_percent, subprice, remise)'; $sql .= " VALUES ($this->id, '" . addslashes($desc) . "','" . addslashes($desc) . "','$fk_product',".price2num($price).", '$qty', '$txtva', $remise_percent,'".price2num($subprice)."','".price2num( $remise)."') ;"; - print $sql; + if ( $this->db->query( $sql) ) { $this->update_price();