mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Add exception code for bad values.
This commit is contained in:
@@ -614,10 +614,9 @@ class OperatorQuerySearch implements SearchInterface
|
||||
// amount
|
||||
//
|
||||
case 'amount_is':
|
||||
|
||||
// strip comma's, make dots.
|
||||
Log::debug(sprintf('Original value "%s"', $value));
|
||||
$value = str_replace(',', '.', (string) $value);
|
||||
|
||||
$amount = app('steam')->positive($value);
|
||||
Log::debug(sprintf('Set "%s" using collector with value "%s"', $operator, $amount));
|
||||
$this->collector->amountIs($amount);
|
||||
|
Reference in New Issue
Block a user