search on lots or serials

This commit is contained in:
Christophe Battarel 2021-03-16 16:50:59 +01:00
parent 8246eb814b
commit f59c19b573
3 changed files with 8 additions and 2 deletions

View File

@ -79,6 +79,10 @@ if (!empty($conf->societe->enabled) && empty($conf->global->MAIN_SEARCHFORM_CONT
if (((!empty($conf->product->enabled) && $user->rights->produit->lire) || (!empty($conf->service->enabled) && $user->rights->service->lire)) if (((!empty($conf->product->enabled) && $user->rights->produit->lire) || (!empty($conf->service->enabled) && $user->rights->service->lire))
&& empty($conf->global->MAIN_SEARCHFORM_PRODUITSERVICE_DISABLED)) { && empty($conf->global->MAIN_SEARCHFORM_PRODUITSERVICE_DISABLED)) {
$arrayresult['searchintoproduct'] = array('position'=>30, 'shortcut'=>'P', 'img'=>'object_product', 'label'=>$langs->trans("SearchIntoProductsOrServices", $search_boxvalue), 'text'=>img_picto('', 'object_product').' '.$langs->trans("SearchIntoProductsOrServices", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/product/list.php'.($search_boxvalue ? '?sall='.urlencode($search_boxvalue) : '')); $arrayresult['searchintoproduct'] = array('position'=>30, 'shortcut'=>'P', 'img'=>'object_product', 'label'=>$langs->trans("SearchIntoProductsOrServices", $search_boxvalue), 'text'=>img_picto('', 'object_product').' '.$langs->trans("SearchIntoProductsOrServices", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/product/list.php'.($search_boxvalue ? '?sall='.urlencode($search_boxvalue) : ''));
// search on lot/serial numbers
if ( ! empty($conf->productbatch->enabled) ) {
$arrayresult['searchintobatch'] = array('position'=>32, 'shortcut'=>'B', 'img'=>'object_plot', 'label'=>$langs->trans("SearchIntoBatch", $search_boxvalue), 'text'=>img_picto('', 'object_lot').' '.$langs->trans("SearchIntoBatch", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/product/stock/productlot_list.php'.($search_boxvalue ? '?sall='.urlencode($search_boxvalue) : ''));
}
} }
if (!empty($conf->mrp->enabled) && $user->rights->mrp->read && empty($conf->global->MAIN_SEARCHFORM_MRP_DISABLED)) { if (!empty($conf->mrp->enabled) && $user->rights->mrp->read && empty($conf->global->MAIN_SEARCHFORM_MRP_DISABLED)) {

View File

@ -1017,6 +1017,7 @@ SearchIntoContacts=Contacts
SearchIntoMembers=Members SearchIntoMembers=Members
SearchIntoUsers=Users SearchIntoUsers=Users
SearchIntoProductsOrServices=Products or services SearchIntoProductsOrServices=Products or services
SearchIntoBatch=Lots / Serials
SearchIntoProjects=Projects SearchIntoProjects=Projects
SearchIntoMO=Manufacturing Orders SearchIntoMO=Manufacturing Orders
SearchIntoTasks=Tasks SearchIntoTasks=Tasks

View File

@ -1013,6 +1013,7 @@ SearchIntoContacts=Contacts
SearchIntoMembers=Adhérents SearchIntoMembers=Adhérents
SearchIntoUsers=Utilisateurs SearchIntoUsers=Utilisateurs
SearchIntoProductsOrServices=Produits ou services SearchIntoProductsOrServices=Produits ou services
SearchIntoBatch=Lots / N° de série
SearchIntoProjects=Projets SearchIntoProjects=Projets
SearchIntoMO=Ordres de fabrication SearchIntoMO=Ordres de fabrication
SearchIntoTasks=Tâches SearchIntoTasks=Tâches