From d86d8c15dcdd2e214c5d7455fadbe574bdcad45a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 12 Dec 2006 16:57:01 +0000 Subject: [PATCH] Ajout gestion du poids dans les formulaires --- htdocs/product/fiche.php | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index dd480b9e5ca..59889c2a443 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -489,6 +489,14 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) print ''.$langs->trans("Year").' '; print ''; } + else + { + // Le poids ne concerne que les produits et pas les services + print ''.$langs->trans("Weight").''; + print ''; + print $html->select_weight_units("weight_units"); + print ''; + } // Note (invisible sur facture, propales...) print ''.$langs->trans("NoteNotVisibleOnBill").''; @@ -694,7 +702,13 @@ if ($_GET["id"] || $_GET["ref"]) print ''; } - + else + { + print ''.$langs->trans("Weight").''; + print $product->weight." "; + print weight_units_string($product->weight_units); + print "\n"; + } // Note print ''.$langs->trans("Note").''.nl2br($product->note).''; print "\n"; @@ -783,6 +797,14 @@ if ($_GET["id"] || $_GET["ref"]) print ''; } + else + { + // Le poids ne concerne que les produits et pas les services + print ''.$langs->trans("Weight").''; + print ''; + print $html->select_weight_units("weight_units",$product->weight_units); + print ''; + } // Note print ''.$langs->trans("NoteNotVisibleOnBill").'';