diff --git a/htdocs/product/stock/mouvement.php b/htdocs/product/stock/mouvement.php
index e7329f1d44a..7a82b2d7371 100644
--- a/htdocs/product/stock/mouvement.php
+++ b/htdocs/product/stock/mouvement.php
@@ -634,7 +634,7 @@ if ($resql)
/* */
/* ************************************************************************** */
- if (empty($action) && $id > 0)
+ if ((empty($action) || $action == 'list') && $id > 0)
{
print "
\n";
diff --git a/htdocs/product/stock/tpl/stockcorrection.tpl.php b/htdocs/product/stock/tpl/stockcorrection.tpl.php
index 732fa8c889d..d946a23bf70 100644
--- a/htdocs/product/stock/tpl/stockcorrection.tpl.php
+++ b/htdocs/product/stock/tpl/stockcorrection.tpl.php
@@ -68,8 +68,8 @@ if (empty($conf) || ! is_object($conf))
print '
';
if ($object->element == 'product')
{
- print '| '.$langs->trans("Warehouse").' | ';
- print '';
+ print ' | '.$langs->trans("Warehouse").' | ';
+ print '';
print $formproduct->selectWarehouses((GETPOST("dwid")?GETPOST("dwid",'int'):(GETPOST('id_entrepot')?GETPOST('id_entrepot','int'):'ifone')), 'id_entrepot', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, null, 'minwidth100');
print ' |
';
// Purchase price
print '';
- print '| '.$langs->trans("UnitPurchaseValue").' | ';
+ print ''.$langs->trans("UnitPurchaseValue").' | ';
print ' | ';
if (! empty($conf->projet->enabled))
{
print ''.$langs->trans('Project').' | ';
print '';
- $formproject->select_projects();
+ $formproject->select_projects(0, '', 'projectid', 0, 0, 1, 0, 0, 0, 0, '', 0, 0, 'maxwidth300');
print ' | ';
}
print '
';
@@ -133,7 +133,7 @@ if (empty($conf) || ! is_object($conf))
print '';
print '| '.$langs->trans("MovementLabel").' | ';
print '';
- print '';
+ print '';
print ' | ';
print ''.$langs->trans("InventoryCode").' | | ';
print '
';
diff --git a/htdocs/product/stock/tpl/stocktransfer.tpl.php b/htdocs/product/stock/tpl/stocktransfer.tpl.php
index 18f6b831cf2..4c89b97622f 100644
--- a/htdocs/product/stock/tpl/stocktransfer.tpl.php
+++ b/htdocs/product/stock/tpl/stocktransfer.tpl.php
@@ -72,20 +72,20 @@ if (empty($conf) || ! is_object($conf))
print '';
if ($object->element == 'product')
{
- print '| '.$langs->trans("WarehouseSource").' | ';
- print '';
+ print ' | '.$langs->trans("WarehouseSource").' | ';
+ print '';
print $formproduct->selectWarehouses((GETPOST("dwid")?GETPOST("dwid",'int'):(GETPOST('id_entrepot')?GETPOST('id_entrepot','int'):'ifone')), 'id_entrepot', 'warehouseopen,warehouseinternal', 1);
print ' | ';
}
if ($object->element == 'stock')
{
- print ''.$langs->trans("Product").' | ';
- print '';
- print $form->select_produits(GETPOST('product_id'),'product_id',(empty($conf->global->STOCK_SUPPORTS_SERVICES)?'0':''));
+ print ' | '.$langs->trans("Product").' | ';
+ print '';
+ print $form->select_produits(GETPOST('product_id'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES)?'0':''), 20, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500');
print ' | ';
}
- print ''.$langs->trans("WarehouseTarget").' | ';
+ print ' | '.$langs->trans("WarehouseTarget").' | ';
print $formproduct->selectWarehouses(GETPOST('id_entrepot_destination'), 'id_entrepot_destination', 'warehouseopen,warehouseinternal', 1);
print ' |
';
print '| '.$langs->trans("NumberOfUnit").' | | ';
@@ -125,11 +125,11 @@ if (empty($conf) || ! is_object($conf))
// Label
$valformovementlabel=(GETPOST("label")?GETPOST("label"):$langs->trans("MovementTransferStock", $productref));
print '
';
- print '| '.$langs->trans("MovementLabel").' | ';
+ print ''.$langs->trans("MovementLabel").' | ';
print '';
- print '';
+ print '';
print ' | ';
- print ''.$langs->trans("InventoryCode").' | | ';
+ print ''.$langs->trans("InventoryCode").' | | ';
print '
';
print '';