diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index f59038aceae..36f9705aabc 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -670,8 +670,8 @@ if (empty($reshook)) $tva_tx = ''; } - $qty = GETPOST('qty'.$predef); - $remise_percent = (GETPOST('remise_percent'.$predef) != '' ? GETPOST('remise_percent'.$predef) : 0); + $qty = price2num(GETPOST('qty'.$predef, 'alpha')); + $remise_percent = (GETPOSTISSET('remise_percent'.$predef) ? price2num(GETPOST('remise_percent'.$predef, 'alpha')) : 0); // Extrafields $extralabelsline = $extrafields->fetch_name_optionals_label($object->table_element_line);