diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index 180fcaf1bd9..def8f82ae69 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -1007,8 +1007,7 @@ class Facture if (! $ventil) $ventil=0; $soc = new Societe($this->db); $soc->fetch($this->socidp); - if($soc->tva_assuj == "0") - $txtva ="0"; + if($soc->tva_assuj == "0") $txtva ="0"; dolibarr_syslog("facture.class.php:: txtva : ".$txtva); if ($fk_product && ! $pu) { @@ -1059,14 +1058,14 @@ class Facture $rangmax = $row[0]; } - if ($conf->global->PRODUIT_CHANGE_PROD_DESC) - { - if (!$product_desc) - { - $product_desc = $desc; - } - } - + if ($conf->global->PRODUIT_CHANGE_PROD_DESC) + { + if (!$product_desc) + { + $product_desc = $desc; + } + } + // Formatage des prix $price = price2num($price); $subprice = price2num($subprice); diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 73f77ae0706..37de0243aba 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -208,9 +208,9 @@ class Product if (! $this->libelle) $this->libelle = 'LIBELLE MANQUANT'; $this->ref = trim(sanitize_string($this->ref)); - $this->libelle = trim(addslashes($this->libelle)); - $this->description = trim(addslashes($this->description)); - $this->note = trim(addslashes($this->note)); + $this->libelle = trim($this->libelle); + $this->description = trim($this->description); + $this->note = trim($this->note); $sql = "UPDATE ".MAIN_DB_PREFIX."product "; $sql .= " SET label = '" . addslashes($this->libelle) ."'";