File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
templates/pdf/payment_order Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,14 @@ public function getIban(): ?string
98
98
return $ this ->iban ;
99
99
}
100
100
101
+ /**
102
+ * @return string|null The IBAN formatted with spaces between every 4 characters.
103
+ */
104
+ public function getIbanFormatted (): string
105
+ {
106
+ return chunk_split ($ this ->iban ?? '' , 4 , ' ' );
107
+ }
108
+
101
109
/**
102
110
* Returns the IBAN of the bank account without spaces.
103
111
* This is useful for SEPA exporter and other places where a IBAN in a machine-readable form is needed.
Original file line number Diff line number Diff line change @@ -160,6 +160,14 @@ public function getIban(): ?string
160
160
return $ this ->iban ;
161
161
}
162
162
163
+ /**
164
+ * @return string|null The IBAN formatted with spaces between every 4 characters.
165
+ */
166
+ public function getIbanFormatted (): string
167
+ {
168
+ return chunk_split ($ this ->iban ?? '' , 4 , ' ' );
169
+ }
170
+
163
171
/**
164
172
* Returns the IBAN of the receivers bank account without spaces.
165
173
* This is useful for SEPA exporter and other places where a IBAN in a machine-readable form is needed.
Original file line number Diff line number Diff line change 82
82
83
83
<tr >
84
84
<td >IBAN:</td >
85
- <td >{{ paymentOrder .bankInfo .iban }}</td >
85
+ <td >{{ paymentOrder .bankInfo .ibanFormatted }}</td >
86
86
</tr >
87
87
<tr >
88
88
<td >Verwendungszweck:</td >
You can’t perform that action at this time.
0 commit comments