diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index f14bde9c518..4174e294561 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -69,6 +69,7 @@ if ($_POST["action"] == 'add' && $user->rights->produit->creer) $product->type = $_POST["type"]; $product->envente = $_POST["statut"]; $product->description = $_POST["desc"]; + $product->note = $_POST["note"]; $product->duration_value = $_POST["duration_value"]; $product->duration_unit = $_POST["duration_unit"]; $product->seuil_stock_alerte = $_POST["seuil_stock_alerte"]; @@ -105,6 +106,7 @@ if ($_POST["action"] == 'update' && $product->price = $_POST["price"]; $product->tva_tx = $_POST["tva_tx"]; $product->description = $_POST["desc"]; + $product->note = $_POST["note"]; $product->envente = $_POST["statut"]; $product->seuil_stock_alerte = $_POST["seuil_stock_alerte"]; $product->duration_value = $_POST["duration_value"]; @@ -196,9 +198,9 @@ if ($_POST["cancel"] == $langs->trans("Cancel")) Header("Location: fiche.php?id=".$_POST["id"]); } -// Le produit n'est pas encore chargé a ce stade -//llxHeader("","",$langs->trans("CardProduct".$product->type)); -llxHeader("","",$langs->trans("CardProduct0")); + + +llxHeader("","",$langs->trans("CardProductService")); /* @@ -206,69 +208,77 @@ llxHeader("","",$langs->trans("CardProduct0")); */ if ($_GET["action"] == 'create' && $user->rights->produit->creer) { - $html = new Form($db); - $product = new Product($db); - if ($_error == 1) + $html = new Form($db); + $product = new Product($db); + if ($_error == 1) { - $product = $e_product; + $product = $e_product; } - print '
'; } @@ -436,6 +446,9 @@ if ($_GET["id"]) print ''; } + // Note + print '