mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
Merge pull request #182 from roberthorlings/develop
Small fix for importing amounts with comma as decimal separator
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -4,3 +4,9 @@
|
|||||||
|
|
||||||
storage/
|
storage/
|
||||||
.env.local
|
.env.local
|
||||||
|
|
||||||
|
# Eclipse specific files
|
||||||
|
.buildpath
|
||||||
|
.project
|
||||||
|
.settings/
|
||||||
|
|
||||||
|
@@ -20,7 +20,7 @@ class AmountComma extends BasicConverter implements ConverterInterface
|
|||||||
$value = str_replace(',', '.', $this->value);
|
$value = str_replace(',', '.', $this->value);
|
||||||
|
|
||||||
if (is_numeric($value)) {
|
if (is_numeric($value)) {
|
||||||
return floatval($value);
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return '0';
|
return '0';
|
||||||
|
Reference in New Issue
Block a user