From 11b9c499e9c618a8506627e10a4226a4a4928c06 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 27 Mar 2023 20:30:18 +0200 Subject: [PATCH] Tooltip --- htdocs/langs/en_US/stocks.lang | 2 +- htdocs/product/stock/replenish.php | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/langs/en_US/stocks.lang b/htdocs/langs/en_US/stocks.lang index f789ce283e5..f4c4793ad0f 100644 --- a/htdocs/langs/en_US/stocks.lang +++ b/htdocs/langs/en_US/stocks.lang @@ -99,7 +99,7 @@ RealStockWillAutomaticallyWhen=The real stock will be modified according to this VirtualStock=Virtual stock VirtualStockAtDate=Virtual stock at a future date VirtualStockAtDateDesc=Virtual stock once all the pending orders that are planned to be processed before the chosen date will be finished -VirtualStockDesc=Virtual stock is the calculated stock available once all open/pending actions (that affect stocks) are closed (purchase orders received, sales orders shipped, manufacturing orders produced, etc) +VirtualStockDesc=Virtual stock is the stock that will remain after all open/pending actions (that affect stocks) have been performed (purchase orders received, sales orders shipped, manufacturing orders produced, etc) AtDate=At date IdWarehouse=Id warehouse DescWareHouse=Description warehouse diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index cf6d6b8352d..aad386ce444 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -685,8 +685,10 @@ if (!empty($salert)) $param .= '&salert='.urlencode($salert); $stocklabel = $langs->trans('Stock'); $stocklabelbis = $langs->trans('Stock'); +$stocktooltip = ''; if ($usevirtualstock == 1) { $stocklabel = $langs->trans('VirtualStock'); + $stocktooltip = $langs->trans("VirtualStockDesc"); } if ($usevirtualstock == 0) { $stocklabel = $langs->trans('PhysicalStock'); @@ -699,7 +701,6 @@ $texte = $langs->trans('Replenishment'); print '
'; -print '
'; if (!empty($conf->global->REPLENISH_ALLOW_VARIABLESIZELIST)) { print_barre_liste( @@ -733,6 +734,8 @@ if (!empty($conf->global->REPLENISH_ALLOW_VARIABLESIZELIST)) { ); } + +print '
'; print ''; // Fields title search @@ -776,7 +779,7 @@ if (isModEnabled("service") && $type == 1) { } print_liste_field_titre('DesiredStock', $_SERVER["PHP_SELF"], 'p.desiredstock', $param, '', '', $sortfield, $sortorder, 'right '); print_liste_field_titre('StockLimitShort', $_SERVER["PHP_SELF"], 'p.seuil_stock_alerte', $param, '', '', $sortfield, $sortorder, 'right '); -print_liste_field_titre($stocklabel, $_SERVER["PHP_SELF"], 'stock_physique', $param, '', '', $sortfield, $sortorder, 'right '); +print_liste_field_titre($stocklabel, $_SERVER["PHP_SELF"], 'stock_physique', $param, '', '', $sortfield, $sortorder, 'right ', $stocktooltip); if (!empty($conf->global->STOCK_ALLOW_ADD_LIMIT_STOCK_BY_WAREHOUSE) && $fk_entrepot > 0) { print_liste_field_titre($stocklabelbis, $_SERVER["PHP_SELF"], 'stock_real_warehouse', $param, '', '', $sortfield, $sortorder, 'right '); }