VRBL-INV-PL-B2B-3-107
Basic Info
|
Rule
|
The Financial Institution Branch ID must be a valid BIC / SWIFT code. |
|
Context
|
/ubl:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID
|
|
Pattern
|
vrbl-invoice-pl-b2b-3p0 |
|
Severity
|
fatal |
Used Template: IsBIC
| Parameter |
|
Value |
| probe |
= |
.
|
Implementation
not(boolean(.))
or
(
(string-length(.) = 8 or string-length(.) = 11)
and
translate(substring(., 1, 4), $AlphabetUpperCase, '')=''
and
translate(substring(., 5, 2), $AlphabetUpperCase, '')=''
and
translate(substring(., 7, 2), $AlphaNumerics, '')=''
and
translate(substring(., 9, 3), $AlphaNumerics, '')=''
)