';
$sql = "SELECT e.label, e.rowid, e.statut FROM ".MAIN_DB_PREFIX."entrepot as e";
@@ -50,7 +56,7 @@ if ($result)
if ($num > 0)
{
- print '';
+ print '';
print '| Entrepôts | ';
@@ -72,7 +78,7 @@ if ($result)
}
else
{
- print $db->error() . " " .$sql;
+ dolibarr_print_error($db);
}
print '';
diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php
index cfe7b564ab2..e8226a7ab66 100644
--- a/htdocs/product/stock/product.php
+++ b/htdocs/product/stock/product.php
@@ -45,7 +45,7 @@ $types[0] = $langs->trans("Product");
$types[1] = $langs->trans("Service");
-llxHeader("","","Fiche produit");
+llxHeader("","",$langs->trans("ProductCard"));
if ($_POST["action"] == "create_stock")
{
@@ -84,8 +84,8 @@ if ($_GET["id"])
print ' ';
print ' ';
@@ -102,7 +102,7 @@ if ($_GET["id"])
if($product->type == 0)
{
$head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id;
- $head[$h][1] = 'Stock';
+ $head[$h][1] = $langs->trans("Stock");
$hselected=$h;
$h++;
}
@@ -115,26 +115,24 @@ if ($_GET["id"])
print($mesg);
- print_fiche_titre('Fiche stock : '.$product->ref, $mesg);
-
- print '';
+ print '';
print "";
print '| '.$langs->trans("Ref").' | '.$product->ref.' | ';
print '';
if ($product->envente)
{
- print "En vente";
+ print $langs->trans("OnSell");
}
else
{
- print "Cet article n'est pas en vente";
+ print $langs->trans("NotOnSell");
}
print ' | ';
print '| '.$langs->trans("Label").' | '.$product->libelle.' | ';
print ''.$langs->trans("Statistics").' | ';
- print '| Prix de vente | '.price($product->price).' | ';
+ print ' | '.$langs->trans("SellingPrice").' | '.price($product->price).' | ';
print '';
- print 'Fournisseurs ['.$langs->trans("Add").']';
+ print $langs->trans("Suppliers").' ['.$langs->trans("Add").']';
$sql = "SELECT s.nom, s.idp";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."product_fournisseur as pf";
@@ -145,7 +143,7 @@ if ($_GET["id"])
{
$num = $db->num_rows();
$i = 0;
- print '';
+ print '';
$var=True;
while ($i < $num)
{
@@ -167,7 +165,7 @@ if ($_GET["id"])
* Contenu des stocks
*
*/
- print '
';
+ print '
';
print '| Entrepôt | Valeur du stock | ';
$sql = "SELECT e.rowid, e.label, ps.reel FROM ".MAIN_DB_PREFIX."entrepot as e, ".MAIN_DB_PREFIX."product_stock as ps";
$sql .= " WHERE ps.fk_entrepot = e.rowid AND ps.fk_product = $product->id";
@@ -188,8 +186,6 @@ if ($_GET["id"])
print '| '.$langs->trans("Total").': | '.$total." | ";
print ' ';
-
-
}
print '';
@@ -202,7 +198,7 @@ if ($_GET["id"])
print_titre ("Correction du stock");
print " | | |