mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Finish up bunq import routine.
This commit is contained in:
@@ -162,9 +162,14 @@ class AccountFactory
|
||||
if ($accountTypeId > 0) {
|
||||
return AccountType::find($accountTypeId);
|
||||
}
|
||||
$type = config('firefly.accountTypeByIdentifier.' . strval($accountType));
|
||||
$type = config('firefly.accountTypeByIdentifier.' . strval($accountType));
|
||||
$result = AccountType::whereType($type)->first();
|
||||
if (is_null($result) && !is_null($accountType)) {
|
||||
// try as full name:
|
||||
$result = AccountType::whereType($accountType)->first();
|
||||
}
|
||||
|
||||
return AccountType::whereType($type)->first();
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -93,7 +93,7 @@ class TransactionJournalFactory
|
||||
|
||||
// store date meta fields (if present):
|
||||
$fields = ['sepa-cc', 'sepa-ct-op', 'sepa-ct-id', 'sepa-db', 'sepa-country', 'sepa-ep', 'sepa-ci', 'interest_date', 'book_date', 'process_date',
|
||||
'due_date', 'payment_date', 'invoice_date', 'internal_reference',];
|
||||
'due_date', 'payment_date', 'invoice_date', 'internal_reference','bunq_payment_id'];
|
||||
|
||||
foreach ($fields as $field) {
|
||||
$this->storeMeta($journal, $data, $field);
|
||||
|
@@ -56,7 +56,7 @@ class TransactionJournalMetaFactory
|
||||
if ($data['data'] instanceof Carbon) {
|
||||
$value = $data['data']->toW3cString();
|
||||
}
|
||||
if (strlen($value) === 0) {
|
||||
if (strlen(strval($value)) === 0) {
|
||||
// don't store blank strings.
|
||||
if (!is_null($entry)) {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user