Added Spaces to IBAN for IBAN View in Address View and Form.php

This commit is contained in:
Luca Haid
2024-04-16 08:55:49 +02:00
parent 86afeaa642
commit 0913240593
2 changed files with 69 additions and 21 deletions

View File

@@ -112,7 +112,13 @@
<td><?=$address->bank_account_owner?></td>
</tr><tr>
<th>IBAN</th>
<td><?=$address->bank_account_iban?></td>
<td><?php
$iban = $address->bank_account_iban;
$iban = preg_replace('/\s+/', '', $iban);
$iban = chunk_split($iban, 4, ' ');
$iban = trim($iban);
echo $iban;
?></td>
</tr><tr>
<th>BIC</th>
<td><?=$address->bank_account_bic?></td>