FIX : create a deposit with amount using comma didn't work

This commit is contained in:
gauthier 2020-06-30 11:23:55 +02:00
parent afacfa702d
commit 6553c40bea

View File

@ -1255,7 +1255,8 @@ if (empty($reshook))
if ($_POST['type'] == Facture::TYPE_DEPOSIT)
{
$typeamount = GETPOST('typedeposit', 'alpha');
$valuedeposit = GETPOST('valuedeposit', 'int');
$valuedeposit = GETPOST('valuedeposit');
$valuedeposit = price2num($valuedeposit, 'MU');
$amountdeposit = array();
if (!empty($conf->global->MAIN_DEPOSIT_MULTI_TVA))