Modification de label en libelle
This commit is contained in:
parent
888cf83802
commit
c3e32f9f29
@ -26,7 +26,7 @@ class Product
|
|||||||
|
|
||||||
var $id ;
|
var $id ;
|
||||||
var $ref;
|
var $ref;
|
||||||
var $label;
|
var $libelle;
|
||||||
var $description;
|
var $description;
|
||||||
var $price;
|
var $price;
|
||||||
var $tva_tx;
|
var $tva_tx;
|
||||||
@ -51,7 +51,7 @@ class Product
|
|||||||
if (strlen(trim($this->ref)) == 0)
|
if (strlen(trim($this->ref)) == 0)
|
||||||
$err++;
|
$err++;
|
||||||
|
|
||||||
if (strlen(trim($this->label)) == 0)
|
if (strlen(trim($this->libelle)) == 0)
|
||||||
$err++;
|
$err++;
|
||||||
|
|
||||||
if ($err > 0)
|
if ($err > 0)
|
||||||
@ -158,7 +158,7 @@ class Product
|
|||||||
if (strlen(trim($this->ref)))
|
if (strlen(trim($this->ref)))
|
||||||
{
|
{
|
||||||
$sql = "UPDATE llx_product ";
|
$sql = "UPDATE llx_product ";
|
||||||
$sql .= " SET label = '" . trim($this->label) ."'";
|
$sql .= " SET label = '" . trim($this->libelle) ."'";
|
||||||
$sql .= ",ref = '" . trim($this->ref) ."'";
|
$sql .= ",ref = '" . trim($this->ref) ."'";
|
||||||
$sql .= ",tva_tx = " . $this->tva_tx ;
|
$sql .= ",tva_tx = " . $this->tva_tx ;
|
||||||
$sql .= ",envente = " . $this->envente ;
|
$sql .= ",envente = " . $this->envente ;
|
||||||
@ -201,7 +201,7 @@ class Product
|
|||||||
|
|
||||||
$this->id = $result["rowid"];
|
$this->id = $result["rowid"];
|
||||||
$this->ref = $result["ref"];
|
$this->ref = $result["ref"];
|
||||||
$this->label = stripslashes($result["label"]);
|
$this->libelle = stripslashes($result["label"]);
|
||||||
$this->description = stripslashes($result["description"]);
|
$this->description = stripslashes($result["description"]);
|
||||||
$this->price = $result["price"];
|
$this->price = $result["price"];
|
||||||
$this->tva_tx = $result["tva_tx"];
|
$this->tva_tx = $result["tva_tx"];
|
||||||
|
|||||||
@ -81,7 +81,7 @@ if ($HTTP_POST_VARS["action"] == 'addinfacture' &&
|
|||||||
|
|
||||||
$facture->fetch($HTTP_POST_VARS["factureid"]);
|
$facture->fetch($HTTP_POST_VARS["factureid"]);
|
||||||
$facture->addline($HTTP_POST_VARS["factureid"],
|
$facture->addline($HTTP_POST_VARS["factureid"],
|
||||||
addslashes($product->label),
|
addslashes($product->libelle),
|
||||||
$product->price,
|
$product->price,
|
||||||
$HTTP_POST_VARS["qty"],
|
$HTTP_POST_VARS["qty"],
|
||||||
$product->tva_tx, $id);
|
$product->tva_tx, $id);
|
||||||
@ -100,7 +100,7 @@ if ($HTTP_POST_VARS["action"] == 'update' &&
|
|||||||
{
|
{
|
||||||
|
|
||||||
$product->ref = $HTTP_POST_VARS["ref"];
|
$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->price = $HTTP_POST_VARS["price"];
|
||||||
$product->tva_tx = $HTTP_POST_VARS["tva_tx"];
|
$product->tva_tx = $HTTP_POST_VARS["tva_tx"];
|
||||||
$product->description = $HTTP_POST_VARS["desc"];
|
$product->description = $HTTP_POST_VARS["desc"];
|
||||||
@ -229,7 +229,7 @@ else
|
|||||||
print "<b>Cet article n'est pas en vente</b>";
|
print "<b>Cet article n'est pas en vente</b>";
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print "<td>Libellé</td><td>$product->label</td>";
|
print "<td>Libellé</td><td>$product->libelle</td>";
|
||||||
print '<td><a href="stats/fiche.php?id='.$id.'">Statistiques</a></td></tr>';
|
print '<td><a href="stats/fiche.php?id='.$id.'">Statistiques</a></td></tr>';
|
||||||
print '<tr><td>Prix de vente</td><TD>'.price($product->price).'</td>';
|
print '<tr><td>Prix de vente</td><TD>'.price($product->price).'</td>';
|
||||||
print '<td valign="top" rowspan="4">';
|
print '<td valign="top" rowspan="4">';
|
||||||
@ -297,7 +297,7 @@ else
|
|||||||
|
|
||||||
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
|
||||||
print "<tr>".'<td width="20%">Référence</td><td colspan="2"><input name="ref" size="20" value="'.$product->ref.'"></td></tr>';
|
print "<tr>".'<td width="20%">Référence</td><td colspan="2"><input name="ref" size="20" value="'.$product->ref.'"></td></tr>';
|
||||||
print '<td>Libellé</td><td colspan="2"><input name="libelle" size="40" value="'.$product->label.'"></td></tr>';
|
print '<td>Libellé</td><td colspan="2"><input name="libelle" size="40" value="'.$product->libelle.'"></td></tr>';
|
||||||
|
|
||||||
print "<tr>".'<td>Taux TVA</td><td colspan="2">';
|
print "<tr>".'<td>Taux TVA</td><td colspan="2">';
|
||||||
$html = new Form($db);
|
$html = new Form($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user