diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index c113d9a0e63..e5e221c529b 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -497,6 +497,14 @@ if ($mode == 'common' || $mode == 'commonkanban') dol_fiche_head($head, $newmode, '', -1); $moreforfilter = '
| '; +print $formproduct->selectWarehouses($id_sw, 'id_sw', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, array(), 'minwidth200imp maxwidth200'); +print ' | '; +// To warehouse +print ''; +print $formproduct->selectWarehouses($id_tw, 'id_tw', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, array(), 'minwidth200imp maxwidth200'); +print ' | '; // Product print ''; $filtertype = 0; @@ -360,7 +369,7 @@ if ($conf->global->PRODUIT_LIMIT_SIZE <= 0) { $limit = $conf->global->PRODUIT_LIMIT_SIZE; } -$form->select_produits($id_product, 'productid', $filtertype, $limit, 0, -1, 2, '', 0, array(), 0, '1', 0, 'minwidth200imp maxwidth300', 1); +$form->select_produits($id_product, 'productid', $filtertype, $limit, 0, -1, 2, '', 1, array(), 0, '1', 0, 'minwidth200imp maxwidth300', 1); print ' | '; // Batch number if ($conf->productbatch->enabled) @@ -369,14 +378,6 @@ if ($conf->productbatch->enabled) print ''; print ''; } -// In warehouse -print ''; -print $formproduct->selectWarehouses($id_sw, 'id_sw', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, array(), 'minwidth200imp maxwidth200'); -print ' | '; -// Out warehouse -print ''; -print $formproduct->selectWarehouses($id_tw, 'id_tw', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, array(), 'minwidth200imp maxwidth200'); -print ' | '; // Qty print ''; // Button to add line @@ -393,6 +394,12 @@ foreach ($listofdata as $key => $val) print ' | |
| '; + print $warehousestatics->getNomUrl(1); + print ' | '; + print ''; + print $warehousestatict->getNomUrl(1); + print ' | '; + print ''; print $productstatic->getNomUrl(1).' - '.$productstatic->label; print ' | '; if ($conf->productbatch->enabled) @@ -401,12 +408,6 @@ foreach ($listofdata as $key => $val) print $val['batch']; print ''; } - print ''; - print $warehousestatics->getNomUrl(1); - print ' | '; - print ''; - print $warehousestatict->getNomUrl(1); - print ' | '; print ''.$val['qty'].' | '; print ''.img_delete($langs->trans("Remove")).' | '; diff --git a/htdocs/product/stock/productlot_card.php b/htdocs/product/stock/productlot_card.php index 0fd37e3f55b..9b6de313b65 100644 --- a/htdocs/product/stock/productlot_card.php +++ b/htdocs/product/stock/productlot_card.php @@ -323,7 +323,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea print '
| '.$langs->trans("Product").' | '; $producttmp = new Product($db); $producttmp->fetch($object->fk_product); - print $producttmp->getNomUrl(1, 'stock'); + print $producttmp->getNomUrl(1, 'stock'). " - " . $producttmp->label; print ' |