Fix: perte des centimes lors de l'utilisation de la virgule au lieu du point
remplacement avec la fonction price2num
This commit is contained in:
parent
7c6e33d6fc
commit
2678673f3f
@ -56,11 +56,11 @@ if ($_POST["action"] == 'add' && $account && ! isset($_POST["cancel"]) && $user-
|
|||||||
|
|
||||||
if ($_POST["credit"] > 0)
|
if ($_POST["credit"] > 0)
|
||||||
{
|
{
|
||||||
$amount = str_replace(',','.',$_POST["credit"]);
|
$amount = price2num($_POST["credit"]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$amount = - str_replace(',','.',$_POST["debit"]);
|
$amount = - price2num($_POST["debit"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$dateop = dolibarr_mktime(12,0,0,$_POST["opmonth"],$_POST["opday"],$_POST["opyear"]);
|
$dateop = dolibarr_mktime(12,0,0,$_POST["opmonth"],$_POST["opday"],$_POST["opyear"]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user