mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Fix issue #8328
This commit is contained in:
@@ -47,6 +47,11 @@ trait ValidatesAmountsTrait
|
||||
return -1 === bccomp($value, '0') || 0 === bccomp($value, '0');
|
||||
}
|
||||
|
||||
final protected function zeroOrMore(string $value): bool
|
||||
{
|
||||
return 1 === bccomp($value, '0') || 0 === bccomp($value, '0');
|
||||
}
|
||||
|
||||
final protected function moreThanLots(string $value): bool
|
||||
{
|
||||
return 1 === bccomp($value, self::BIG_AMOUNT) || 0 === bccomp($value, self::BIG_AMOUNT);
|
||||
|
Reference in New Issue
Block a user