Rules
VRBL-INV-FR-CIUS-1p0-B2G-53
Basic Info
|
Rule
|
For B2G, when an IBAN reference is used, the Payment Service Provider ID must be a valid BIC / SWIFT code. |
|
Context
|
/ubl:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID
|
|
Pattern
|
vrbl-invoice-fr-cpro-b2g |
|
Severity
|
warning |
Used Template: IsBIC
| Parameter |
|
Value |
| probe |
= |
.
|
Implementation
(
not($isB2G) or not($isIBAN)
)
or
(
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, '')=''
)
)