dbut ajout possibilit de dterminer si le contenu d'une catgorie sera visible ou

non dans la liste des produits/services, ceci afin de pouvoir cacher les sous-produits
 par exemple.
This commit is contained in:
Regis Houssin 2006-03-31 14:20:45 +00:00
parent 881daaad06
commit bd40959922
5 changed files with 15 additions and 7 deletions

View File

@ -4,6 +4,8 @@ Products=Products
Services=Services
Product=Product
Service=Service
Create=Create
References=References
NewProduct=New product
NewService=New service
ProductCode=Product code
@ -17,6 +19,7 @@ ProductsOnSell=Products on sell
ProductsNotOnSell=Products out of sell
ServicesOnSell=Services on sell
ServicesNotOnSell=Services out of sell
InternalRef=Internal reference
LastRecorded=Last products/services on sell recorded
LastRecordedProducts=Last %s products/services recorded
LastProducts=Last products
@ -24,6 +27,7 @@ CardProduct0=Product card
CardProduct1=Service card
CardContract=Contract card
Warehouse=Warehouse
Warehouses=Warehouses
NewWarehouse=New warehouse
WarehouseOpened=Warehouse opened
WarehouseClosed=Warehouse closed

View File

@ -18,4 +18,5 @@ Location=Lieu
LocationSummary=Short name location
NumberOfProducts=Total number of products
LastMovement=Last movement
LastMovements=Last movements
LastMovements=Last movements
Units=Units

View File

@ -5,6 +5,7 @@ Services=Services
Product=Produit
Service=Service
Create=Créer
References=Références
NewProduct=Nouveau produit
NewService=Nouveau service
ProductCode=Code produit

View File

@ -18,4 +18,5 @@ Location=Lieu
LocationSummary=Nom court du lieu
NumberOfProducts=Nombre total de produits
LastMovement=Dernier mouvement
LastMovements=Derniers mouvements
LastMovements=Derniers mouvements
Units=Unités

View File

@ -269,10 +269,11 @@ else
print '<table class="noborder" width="100%">';
print "<tr class=\"liste_titre\">";
print_liste_field_titre($langs->trans("Product"),"", "p.ref","","","",$sortfield);
print_liste_field_titre($langs->trans("Reference"),"", "p.ref","","","",$sortfield);
print "<td>".$langs->trans("Label")."</td>";
print "<td align=\"center\">".$langs->trans("Units")."</td>";
print "</tr>\n";
print "</tr>";
$sql = "SELECT p.rowid as rowid, p.ref, p.label as produit, ps.reel as value ";
$sql .= " FROM ".MAIN_DB_PREFIX."product_stock ps, ".MAIN_DB_PREFIX."product p ";
if ($conf->categorie->enabled && !$user->rights->categorie->voir)
@ -320,13 +321,13 @@ else
//print '<td>'.dolibarr_print_date($objp->datem).'</td>';
print "<td><a href=\"../fiche.php?id=$objp->rowid\">";
print img_object($langs->trans("ShowProduct"),"product").' '.$objp->ref;
print "</a></td>\n";
print "</a></td>";
print '<td>'.$objp->produit.'</td>';
print '<td align="center">'.$objp->value.'</td>';
//print "<td><a href=\"fiche.php?id=$objp->entrepot_id\">";
//print img_object($langs->trans("ShowWarehous"),"stock").' '.$objp->stock;
//print "</a></td>\n";
print "</tr>\n";
print "</tr>";
$i++;
}
$db->free($resql);