From 7ac3bb1b67e90f240585c1cabd2f4dc9bdfb0a07 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 11 Dec 2020 02:40:48 +0100 Subject: [PATCH] Debug v13 --- htdocs/product/stock/stockatdate.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/htdocs/product/stock/stockatdate.php b/htdocs/product/stock/stockatdate.php index 431bec3fd89..f48ac986d20 100644 --- a/htdocs/product/stock/stockatdate.php +++ b/htdocs/product/stock/stockatdate.php @@ -52,6 +52,7 @@ $hookmanager->initHooks(array('stockreplenishlist')); $action = GETPOST('action', 'aZ09'); $type = GETPOST('type', 'int'); $mode = GETPOST('mode', 'alpha'); + $date = ''; $dateendofday = ''; if (GETPOSTISSET('dateday') && GETPOSTISSET('datemonth') && GETPOSTISSET('dateyear')) { @@ -59,6 +60,9 @@ if (GETPOSTISSET('dateday') && GETPOSTISSET('datemonth') && GETPOSTISSET('dateye $dateendofday = dol_mktime(23, 59, 59, GETPOST('datemonth', 'int'), GETPOST('dateday', 'int'), GETPOST('dateyear', 'int')); } +$search_ref = GETPOST('search_ref', 'alphanohtml'); +$search_nom = GETPOST('search_nom', 'alphanohtml'); + $now = dol_now(); $productid = GETPOST('productid', 'int'); @@ -104,6 +108,8 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x' $date = ''; $productid = 0; $fk_warehouse = 0; + $search_ref = ''; + $search_nom = ''; } $warehouseStatus = array(); @@ -386,8 +392,8 @@ print ''; // Fields title search print ''; -print ''; -print ''; +print ''; +print ''; print ''; print ''; print ''; @@ -549,6 +555,12 @@ $parameters = array('sql'=>$sql); $reshook = $hookmanager->executeHooks('printFieldListFooter', $parameters); // Note that $action and $object may have been modified by hook print $hookmanager->resPrint; +if (empty($date) || ! $dateIsValid) { + $colspan = 6; + if ($mode == 'future') $colspan++; + print ''.$langs->trans("EmptySearchString").''; +} + print ''; print '';