diff --git a/htdocs/product/stock/massstockmove.php b/htdocs/product/stock/massstockmove.php index 9abd5d83716..2b764148490 100644 --- a/htdocs/product/stock/massstockmove.php +++ b/htdocs/product/stock/massstockmove.php @@ -481,6 +481,10 @@ if ($action == 'importCSV' && $user->hasRight('stock', 'mouvement', 'creer')) { $error++; setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Qty")), null, 'errors'); } + if (!is_numeric($tmp_qty)) { + $error++; + setEventMessages('Qty need to be numeric value only', null, 'errors'); + } // Check a batch number is provided if product need it if (!$error) {