Make sure IBAN's have their spaces removed.

This commit is contained in:
James Cole
2022-01-03 06:34:42 +01:00
parent 0c53a8db66
commit 87ced85657
8 changed files with 115 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ class AccountUpdateService
$account->active = $data['active'];
}
if (array_key_exists('iban', $data)) {
$account->iban = $data['iban'];
$account->iban = app('steam')->filterSpaces((string)$data['iban']);
}
// set liability, but account must already be a liability.