Switch should have default thing.

This commit is contained in:
James Cole
2020-10-03 17:53:23 +02:00
parent b8e36b0398
commit 61ffc8ada6
7 changed files with 16 additions and 4 deletions

View File

@@ -128,6 +128,8 @@ class OtherCurrenciesCorrections extends Command
/** @var Transaction $lead */
$lead = null;
switch ($journal->transactionType->type) {
default:
break;
case TransactionType::WITHDRAWAL:
$lead = $journal->transactions()->where('amount', '<', 0)->first();
break;