mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Include BIC in import routine
This commit is contained in:
parent
31146954d1
commit
e2ecaf5bcf
@ -38,6 +38,8 @@ class ImportAccount
|
|||||||
/** @var Account */
|
/** @var Account */
|
||||||
private $account;
|
private $account;
|
||||||
/** @var array */
|
/** @var array */
|
||||||
|
private $accountBic = [];
|
||||||
|
/** @var array */
|
||||||
private $accountIban = [];
|
private $accountIban = [];
|
||||||
/** @var array */
|
/** @var array */
|
||||||
private $accountId = [];
|
private $accountId = [];
|
||||||
@ -105,6 +107,14 @@ class ImportAccount
|
|||||||
$this->expectedType = $expectedType;
|
$this->expectedType = $expectedType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $accountBic
|
||||||
|
*/
|
||||||
|
public function setAccountBic(array $accountBic): void
|
||||||
|
{
|
||||||
|
$this->accountBic = $accountBic;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @codeCoverageIgnore
|
* @codeCoverageIgnore
|
||||||
*
|
*
|
||||||
@ -388,6 +398,7 @@ class ImportAccount
|
|||||||
'active' => true,
|
'active' => true,
|
||||||
'virtualBalance' => '0',
|
'virtualBalance' => '0',
|
||||||
'account_type_id' => null,
|
'account_type_id' => null,
|
||||||
|
'BIC' => $this->accountBic['value'] ?? null,
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->account = $this->repository->store($data);
|
$this->account = $this->repository->store($data);
|
||||||
|
@ -283,6 +283,9 @@ class ImportJournal
|
|||||||
case 'opposing-id':
|
case 'opposing-id':
|
||||||
$this->opposing->setAccountId($array);
|
$this->opposing->setAccountId($array);
|
||||||
break;
|
break;
|
||||||
|
case 'opposing-bic':
|
||||||
|
$this->opposing->setAccountBic($array);
|
||||||
|
break;
|
||||||
case 'tags-comma':
|
case 'tags-comma':
|
||||||
case 'tags-space':
|
case 'tags-space':
|
||||||
$this->setTags($array);
|
$this->setTags($array);
|
||||||
|
@ -266,6 +266,12 @@ return [
|
|||||||
'converter' => 'AccountId',
|
'converter' => 'AccountId',
|
||||||
'mapper' => 'OpposingAccounts',
|
'mapper' => 'OpposingAccounts',
|
||||||
],
|
],
|
||||||
|
'opposing-bic' => [
|
||||||
|
'mappable' => false,
|
||||||
|
'pre-process-map' => false,
|
||||||
|
'field' => 'opposing-account-bic',
|
||||||
|
'converter' => 'AccountBic',
|
||||||
|
],
|
||||||
'opposing-name' => [
|
'opposing-name' => [
|
||||||
'mappable' => true,
|
'mappable' => true,
|
||||||
'pre-process-map' => false,
|
'pre-process-map' => false,
|
||||||
|
Loading…
Reference in New Issue
Block a user