mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Validation bug.
This commit is contained in:
@@ -11,6 +11,7 @@ use FireflyIII\Models\Transaction;
|
||||
use FireflyIII\Models\TransactionJournal;
|
||||
use FireflyIII\Models\TransactionType;
|
||||
use Illuminate\Support\Collection;
|
||||
use Log;
|
||||
|
||||
/**
|
||||
* Class JournalRepository
|
||||
@@ -153,6 +154,7 @@ class JournalRepository implements JournalRepositoryInterface
|
||||
$toType = AccountType::where('type', 'Cash account')->first();
|
||||
$to = Account::firstOrCreate(['user_id' => $data['user'], 'account_type_id' => $toType->id, 'name' => 'Cash account', 'active' => 1]);
|
||||
}
|
||||
Log::error('Could not store TO account for Withdrawal (Expense account) because: ' .$to->getErrors()->toJson());
|
||||
break;
|
||||
|
||||
case 'Deposit':
|
||||
|
Reference in New Issue
Block a user