From b1d5882fa6cf2742ba492f2346fec05bcab7a6f0 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 3 Jan 2022 06:35:10 +0100 Subject: [PATCH] Split IBAN display --- app/Http/Controllers/Account/IndexController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/Account/IndexController.php b/app/Http/Controllers/Account/IndexController.php index d8af622c92..3d301fb9de 100644 --- a/app/Http/Controllers/Account/IndexController.php +++ b/app/Http/Controllers/Account/IndexController.php @@ -109,6 +109,7 @@ class IndexController extends Controller $account->interestPeriod = (string)trans(sprintf('firefly.interest_calc_%s', $this->repository->getMetaValue($account, 'interest_period'))); $account->accountTypeString = (string)trans(sprintf('firefly.account_type_%s', $account->accountType->type)); $account->current_debt = '0'; + $account->iban = implode(' ', str_split((string)$account->iban, 4)); } ); @@ -175,6 +176,7 @@ class IndexController extends Controller $account->location = $this->repository->getLocation($account); $account->liability_direction = $this->repository->getMetaValue($account, 'liability_direction'); $account->current_debt = $this->repository->getMetaValue($account, 'current_debt') ?? '-'; + $account->iban = implode(' ', str_split((string)$account->iban, 4)); } ); // make paginator: