This commit is contained in:
James Cole 2020-03-23 20:23:38 +01:00
parent d6797b8428
commit 1e6224f041
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
4 changed files with 14 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -379,6 +379,11 @@
if (0 === sourceId) {
sourceId = null;
}
// parse amount if has exactly one comma:
// solves issues with some locales.
if (1 === (row.amount.match(/\,/g) || []).length) {
row.amount = row.amount.replace(',', '.');
}
currentArray =
{

View File

@ -566,6 +566,13 @@
if (0 === sourceId) {
sourceId = null;
}
// parse amount if has exactly one comma:
// solves issues with some locales.
if (1 === (row.amount.match(/\,/g) || []).length) {
row.amount = row.amount.replace(',', '.');
}
currentArray =
{
transaction_journal_id: row.transaction_journal_id,