From c3e32f9f29d1c6121948337e93a39b73cd129dc9 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 14 Sep 2003 19:13:44 +0000 Subject: [PATCH] Modification de label en libelle --- htdocs/product.class.php | 8 ++++---- htdocs/product/fiche.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index c6f63f332b6..d1dfd73cd44 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -26,7 +26,7 @@ class Product var $id ; var $ref; - var $label; + var $libelle; var $description; var $price; var $tva_tx; @@ -51,7 +51,7 @@ class Product if (strlen(trim($this->ref)) == 0) $err++; - if (strlen(trim($this->label)) == 0) + if (strlen(trim($this->libelle)) == 0) $err++; if ($err > 0) @@ -158,7 +158,7 @@ class Product if (strlen(trim($this->ref))) { $sql = "UPDATE llx_product "; - $sql .= " SET label = '" . trim($this->label) ."'"; + $sql .= " SET label = '" . trim($this->libelle) ."'"; $sql .= ",ref = '" . trim($this->ref) ."'"; $sql .= ",tva_tx = " . $this->tva_tx ; $sql .= ",envente = " . $this->envente ; @@ -201,7 +201,7 @@ class Product $this->id = $result["rowid"]; $this->ref = $result["ref"]; - $this->label = stripslashes($result["label"]); + $this->libelle = stripslashes($result["label"]); $this->description = stripslashes($result["description"]); $this->price = $result["price"]; $this->tva_tx = $result["tva_tx"]; diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 175922762dd..fee039bc62c 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -81,7 +81,7 @@ if ($HTTP_POST_VARS["action"] == 'addinfacture' && $facture->fetch($HTTP_POST_VARS["factureid"]); $facture->addline($HTTP_POST_VARS["factureid"], - addslashes($product->label), + addslashes($product->libelle), $product->price, $HTTP_POST_VARS["qty"], $product->tva_tx, $id); @@ -100,7 +100,7 @@ if ($HTTP_POST_VARS["action"] == 'update' && { $product->ref = $HTTP_POST_VARS["ref"]; - $product->label = $HTTP_POST_VARS["libelle"]; + $product->libelle = $HTTP_POST_VARS["libelle"]; $product->price = $HTTP_POST_VARS["price"]; $product->tva_tx = $HTTP_POST_VARS["tva_tx"]; $product->description = $HTTP_POST_VARS["desc"]; @@ -229,7 +229,7 @@ else print "Cet article n'est pas en vente"; } print ''; - print "Libellé$product->label"; + print "Libellé$product->libelle"; print 'Statistiques'; print 'Prix de vente'.price($product->price).''; print ''; @@ -297,7 +297,7 @@ else print ''; print "".''; - print ''; + print ''; print "".'
Référence
Libellé
Libellé
Taux TVA'; $html = new Form($db);