File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11.DS_Store
22.idea /
3+ .vscode /
34vendor /
45develop /
56coverage /
Original file line number Diff line number Diff line change @@ -53,7 +53,11 @@ class HIUPDv6 extends BaseSegment implements HIUPD
5353
5454 public function matchesAccount (SEPAAccount $ account ): bool
5555 {
56- return !is_null ($ this ->iban ) && $ this ->iban == $ account ->getIban ();
56+ if (!is_null ($ this ->iban )) {
57+ return $ this ->iban == $ account ->getIban ();
58+ }
59+ // Sparkasse (Koblenz) does not provide an IBAN in this segment, fall back to kontonummer:
60+ return !is_null ($ this ->kontoverbindung ->kontonummer ) && $ this ->kontoverbindung ->kontonummer == $ account ->getAccountNumber ();
5761 }
5862
5963 public function getErlaubteGeschaeftsvorfaelle (): array
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public static function serializeSegment(BaseSegment $segment): string
7777 */
7878 public static function serializeSegments (array $ segments ): string
7979 {
80- return implode (array_map ([' self ' , 'serializeSegment ' ], $ segments ));
80+ return implode (array_map ([self ::class , 'serializeSegment ' ], $ segments ));
8181 }
8282
8383 /**
You can’t perform that action at this time.
0 commit comments