mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Extend rule set for import.
This commit is contained in:
@@ -72,9 +72,9 @@ class TestData
|
||||
'updated_at' => $this->time,
|
||||
'user_id' => $account['user_id'],
|
||||
'account_type_id' => $account['account_type_id'],
|
||||
'name' => Crypt::encrypt($account['name']),
|
||||
'name' => $account['name'],
|
||||
'active' => 1,
|
||||
'encrypted' => 1,
|
||||
'encrypted' => 0,
|
||||
'virtual_balance' => 0,
|
||||
'iban' => isset($account['iban']) ? Crypt::encrypt($account['iban']) : null,
|
||||
];
|
||||
@@ -244,6 +244,25 @@ class TestData
|
||||
DB::table('categories')->insert($insert);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private function createCurrencies()
|
||||
{
|
||||
$insert = [];
|
||||
foreach ($this->data['currencies'] as $job) {
|
||||
$insert[] = [
|
||||
'created_at' => $this->time,
|
||||
'updated_at' => $this->time,
|
||||
'deleted_at' => null,
|
||||
'code' => $job['code'],
|
||||
'name' => $job['name'],
|
||||
'symbol' => $job['symbol'],
|
||||
];
|
||||
}
|
||||
DB::table('transaction_currencies')->insert($insert);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -829,6 +848,7 @@ class TestData
|
||||
$this->createMultiDeposits();
|
||||
$this->createMultiTransfers();
|
||||
$this->createImportJobs();
|
||||
$this->createCurrencies();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user