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