Skip to content

Commit

Permalink
qty must be float (not int) (#31792)
Browse files Browse the repository at this point in the history
Co-authored-by: Laurent Destailleur <[email protected]>
  • Loading branch information
defrance and eldy authored Nov 13, 2024
1 parent 9b510f7 commit 301d83e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/mrp/mo_production.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 301d83e

Please sign in to comment.