mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix test data.
This commit is contained in:
parent
a07c52e0d8
commit
4feff18af5
@ -363,7 +363,11 @@ class TestDataSeeder extends Seeder
|
||||
*/
|
||||
protected function createIncome($description, Carbon $date, $amount)
|
||||
{
|
||||
$date = new Carbon($date->format('Y-m') . '-23'); // paid on 23rd.
|
||||
$date = new Carbon($date->format('Y-m') . '-23'); // paid on 23rd.
|
||||
$today = new Carbon;
|
||||
if ($date >= $today) {
|
||||
return null;
|
||||
}
|
||||
$toAccount = $this->findAccount('MyBank Checking Account');
|
||||
$fromAccount = $this->findAccount('Job');
|
||||
$category = Category::firstOrCreateEncrypted(['name' => 'Salary', 'user_id' => $this->user->id]);
|
||||
|
Loading…
Reference in New Issue
Block a user