mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Report sorting is broken with comma decimal separator
This commit is contained in:
parent
47fce2d163
commit
ad7d3f84fc
@ -291,7 +291,7 @@
|
|||||||
// parse 1,000.00 or 1.000,00
|
// parse 1,000.00 or 1.000,00
|
||||||
function convertStringToNumber(str) {
|
function convertStringToNumber(str) {
|
||||||
str = str + '' || '';
|
str = str + '' || '';
|
||||||
var number = Number(str.replace(/[^0-9]+/g,""));
|
var number = Number(str.replace(/[^0-9]+/g, ''));
|
||||||
return number / 100;
|
return number / 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user