diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php index f93aa37cdc0..9ac7a34379a 100644 --- a/htdocs/admin/index.php +++ b/htdocs/admin/index.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/fourn/product/fiche.php b/htdocs/fourn/product/fiche.php index 14b53e3a151..dda521e71bc 100644 --- a/htdocs/fourn/product/fiche.php +++ b/htdocs/fourn/product/fiche.php @@ -67,7 +67,7 @@ if ($_POST["action"] == 'add' && $user->rights->produit->creer) $product->catid = $_POST["catid"]; $product->tva_tx = $_POST["tva_tx"]; $product->type = $_POST["type"]; - $product->envente = $_POST["statut"]; + $product->status = $_POST["statut"]; $product->description = $_POST["desc"]; $product->duration_value = $_POST["duration_value"]; $product->duration_unit = $_POST["duration_unit"]; @@ -361,14 +361,7 @@ else print ""; print ''.$langs->trans("Ref").''.$product->ref.''; print ''; - if ($product->envente) - { - print $langs->trans("OnSell"); - } - else - { - print $langs->trans("NotOnSell"); - } + print $product->getLibStatut(2); print ''; print ''.$langs->trans("Label").''.$product->libelle.''; print ''.$langs->trans("SellingPrice").''.price($product->price).''; diff --git a/htdocs/fourn/product/photos.php b/htdocs/fourn/product/photos.php index aeff8b08669..f97fd35e366 100644 --- a/htdocs/fourn/product/photos.php +++ b/htdocs/fourn/product/photos.php @@ -108,14 +108,7 @@ if ($_GET["id"]) print ""; print ''.$langs->trans("Ref").''.$product->ref.''; print ''; - if ($product->envente) - { - print $langs->trans("OnSell"); - } - else - { - print $langs->trans("NotOnSell"); - } + print $product->getLibStatut(2); print ''; print ''.$langs->trans("Label").''.$product->libelle.''; print ''.$langs->trans("SellingPrice").''.price($product->price).'';