This commit is contained in:
James Cole 2019-08-10 11:17:23 +02:00
parent 94b8bb8f66
commit b7f3c53688
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -225,6 +225,11 @@ trait AccountServiceTrait
$destName = trans('firefly.initial_balance_account', ['account' => $account->name], $language);
$sourceId = $account->id;
}
if (0 === bccomp($amount, '0')) {
Log::debug('Amount is zero, so will not make an OB group.');
return null;
}
$amount = app('steam')->positive($amount);
$submission = [
'group_title' => null,