mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-25 10:20:29 -06:00
Fix #2388
This commit is contained in:
parent
94b8bb8f66
commit
b7f3c53688
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user