mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix code
This commit is contained in:
@@ -213,7 +213,7 @@ class CreditRecalculateService
|
||||
/**
|
||||
* If account direction is "debit" ("I owe this amount") the opening balance must always be AWAY from the account:
|
||||
*/
|
||||
private function validateOpeningBalance(Account $account, TransactionJournal $openingBalance)
|
||||
private function validateOpeningBalance(Account $account, TransactionJournal $openingBalance): void
|
||||
{
|
||||
/** @var Transaction $source */
|
||||
$source = $openingBalance->transactions()->where('amount', '<', 0)->first();
|
||||
|
Reference in New Issue
Block a user