From 67af6f9e648277b5dd47b38ba6f0d7cc1a715387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Wed, 13 Nov 2024 12:20:19 +0100 Subject: [PATCH] qty must be float (not int) --- htdocs/mrp/mo_production.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/mrp/mo_production.php b/htdocs/mrp/mo_production.php index 5d0fddd196310..8f5e4080fa732 100644 --- a/htdocs/mrp/mo_production.php +++ b/htdocs/mrp/mo_production.php @@ -197,7 +197,7 @@ // Line to produce $moline->fk_mo = $object->id; - $moline->qty = GETPOSTINT('qtytoadd'); + $moline->qty = GETPOSTFLOAT('qtytoadd'); $moline->fk_product = GETPOSTINT('productidtoadd'); if (GETPOST('addconsumelinebutton')) { $moline->role = 'toconsume'; @@ -493,7 +493,7 @@ $value = GETPOST('options_'.$key, 'alphanohtml'); $moline->array_options["options_".$key] = $value; } - $moline->qty = GETPOSTINT('qty_lineProduce'); + $moline->qty = GETPOSTFLOAT('qty_lineProduce'); $res = $moline->update($user); if ($res < 0) { setEventMessages($moline->error, $moline->errors, 'errors');