Fix bug in verification.

Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
James Cole 2016-05-20 15:08:24 +02:00
parent e10d5e89e5
commit 99aea5ce7a
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -255,7 +255,7 @@ having transaction_count = 0
/** @var User $user */
foreach ($userRepository->all() as $user) {
$sum = $user->transactions()->sum('amount');
$sum = strval($user->transactions()->sum('amount'));
if (bccomp($sum, '0') !== 0) {
$this->error('Error: Transactions for user #' . $user->id . ' (' . $user->email . ') are off by ' . $sum . '!');
}