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").'';