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 '