diff --git a/htdocs/product/barcode.php b/htdocs/product/barcode.php index b88f3367991..26373da3aed 100644 --- a/htdocs/product/barcode.php +++ b/htdocs/product/barcode.php @@ -152,8 +152,7 @@ print ''.$langs->trans("SellingPrice").''.price($pr // Statut print ''.$langs->trans("Status").''; -if ($product->envente) print $langs->trans("OnSell"); -else print $langs->trans("NotOnSell"); +print $product->getLibStatut(2); print ''; print "\n"; diff --git a/htdocs/product/categorie.php b/htdocs/product/categorie.php index 691b4f413f4..b6e00a590e1 100644 --- a/htdocs/product/categorie.php +++ b/htdocs/product/categorie.php @@ -167,14 +167,26 @@ if ($_GET["id"] || $_GET["ref"]) // Libelle print ''.$langs->trans("Label").''.$product->libelle.''; print ''; + + // Prix + print ''.$langs->trans("SellingPrice").''.price($product->price).''; + + // Statut + print ''.$langs->trans("Status").''; + print $product->getLibStatut(2); + print ''; + print '
'; // Formulaire ajout dans une categorie - print ''; print ''; - print $html->select_all_categories($categorie->id_mere); - print ''; - print '

'; + print ''; + print ''; + print '
'; + print ''. $html->select_all_categories($categorie->id_mere); + print '
'; + print ''; + print '
'; $c = new Categorie($db); @@ -194,7 +206,7 @@ if ($_GET["id"] || $_GET["ref"]) print $langs->trans("ProductIsInCategories"); print '
'; print ''; - print ''; + print ''; foreach ($cats as $cat) { @@ -204,7 +216,7 @@ if ($_GET["id"] || $_GET["ref"]) { $i = !$i; print ""; - print "\n"; + print "\n"; } diff --git a/htdocs/product/document.php b/htdocs/product/document.php index 624a0f5525b..1608c5636d9 100755 --- a/htdocs/product/document.php +++ b/htdocs/product/document.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Marc Barilley / Ocebo * Copyright (C) 2005 Regis Houssin * Copyright (C) 2005 Simon TOSSER @@ -220,6 +220,14 @@ if ($product->id) // Libelle print ''; + // Prix + print ''; + + // Statut + print ''; + print ''; print ''; print '
'.$langs->trans("AllWays").'
'.$langs->trans("Categories").'
".$way."".$langs->trans("DeleteFromCat")."
".img_delete($langs->trans("DeleteFromCat"))." ".$langs->trans("DeleteFromCat")."
'.$langs->trans("Label").''.$product->libelle.'
'.$langs->trans("SellingPrice").''.price($product->price).'
'.$langs->trans("Status").''; + print $product->getLibStatut(2); + print '
'.$langs->trans("NbOfAttachedFiles").''.sizeof($filearray).'
'.$langs->trans("TotalSizeOfAttachedFiles").''.$totalsize.' '.$langs->trans("bytes").'
'; diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index e0c8fb5aeac..a192cb56802 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -70,7 +70,7 @@ if ($_POST["action"] == 'add' && $user->rights->produit->creer) $product->price = stripslashes($_POST["price"]); $product->tva_tx = $_POST["tva_tx"]; $product->type = $_POST["type"]; - $product->envente = $_POST["statut"]; + $product->status = $_POST["statut"]; $product->description = stripslashes($_POST["desc"]); $product->note = stripslashes($_POST["note"]); $product->duration_value = $_POST["duration_value"]; @@ -125,7 +125,7 @@ if ($_POST["action"] == 'update' && $product->tva_tx = $_POST["tva_tx"]; $product->description = stripslashes($_POST["desc"]); $product->note = stripslashes($_POST["note"]); - $product->envente = $_POST["statut"]; + $product->status = $_POST["statut"]; $product->seuil_stock_alerte = $_POST["seuil_stock_alerte"]; $product->duration_value = $_POST["duration_value"]; $product->duration_unit = $_POST["duration_unit"]; @@ -163,7 +163,7 @@ if ($_GET["action"] == 'clone' && $user->rights->produit->creer) if ($product->fetch($_GET["id"]) > 0) { $product->ref = "Clone ".$product->ref; - $product->envente = 0; + $product->status = 0; $product->id = null; if ($product->check()) @@ -551,8 +551,7 @@ if ($_GET["id"] || $_GET["ref"]) // Statut print ''.$langs->trans("Status").''; - if ($product->envente) print $langs->trans("OnSell"); - else print $langs->trans("NotOnSell"); + print $product->getLibStatut(2); print ''; // TVA @@ -635,7 +634,7 @@ if ($_GET["id"] || $_GET["ref"]) print ''; print ''.$langs->trans("Status").''; print '