FIX uses price2numjs
This commit is contained in:
parent
39a422ef94
commit
1b5a0ce3bf
@ -335,7 +335,8 @@ if (! empty($usemargins) && $user->rights->margins->creer)
|
|||||||
if (rate.val() == '')
|
if (rate.val() == '')
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (! $.isNumeric(rate.val().replace(',','.')))
|
var ratejs = price2numjs(rate.val());
|
||||||
|
if (! $.isNumeric(ratejs))
|
||||||
{
|
{
|
||||||
alert('<?php echo dol_escape_js($langs->transnoentities("rateMustBeNumeric")); ?>');
|
alert('<?php echo dol_escape_js($langs->transnoentities("rateMustBeNumeric")); ?>');
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user