mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Import routine cleanup.
This commit is contained in:
@@ -18,7 +18,7 @@ namespace FireflyIII\Import\Converter;
|
||||
*
|
||||
* @package FireflyIII\Import\Converter
|
||||
*/
|
||||
class Amount extends BasicConverter implements ConverterInterface
|
||||
class Amount implements ConverterInterface
|
||||
{
|
||||
|
||||
/**
|
||||
@@ -28,9 +28,9 @@ class Amount extends BasicConverter implements ConverterInterface
|
||||
*
|
||||
* @param $value
|
||||
*
|
||||
* @return float
|
||||
* @return string
|
||||
*/
|
||||
public function convert($value): float
|
||||
public function convert($value): string
|
||||
{
|
||||
$len = strlen($value);
|
||||
$decimalPosition = $len - 3;
|
||||
@@ -59,10 +59,7 @@ class Amount extends BasicConverter implements ConverterInterface
|
||||
$value = str_replace($search, '', $value);
|
||||
}
|
||||
|
||||
$this->setCertainty(90);
|
||||
|
||||
|
||||
return round(floatval($value), 12);
|
||||
return strval(round(floatval($value), 12));
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user