From 4d23d3f77cb407c8dedd29536770fa1dfd442d67 Mon Sep 17 00:00:00 2001 From: Pratush Raj <82569386+pratushraj@users.noreply.github.com> Date: Fri, 5 Sep 2025 18:03:09 +0530 Subject: [PATCH] #35230 (#35231) * #35230 * Update massstockmove.php --------- Co-authored-by: Laurent Destailleur --- htdocs/product/stock/massstockmove.php | 4 ++++ 1 file changed, 4 insertions(+) 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) {