Merge pull request #182 from roberthorlings/develop

Small fix for importing amounts with comma as decimal separator
This commit is contained in:
James Cole 2016-02-15 19:48:27 +01:00
commit 7cbfa9fcd4
2 changed files with 7 additions and 1 deletions

6
.gitignore vendored
View File

@ -4,3 +4,9 @@
storage/
.env.local
# Eclipse specific files
.buildpath
.project
.settings/

View File

@ -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';