VRBL-INV-HR-CIUS-1p0-58
Basic Info
| Rule | The Seller Contact ID must be a valid OIB. |
| Context |
/ubl:Invoice/cac:AccountingSupplierParty/cac:SellerContact/cbc:ID
|
| Pattern | vrbl-invoice-hr-cius-1p0 |
| Severity | fatal |
Used Template: VRBL-HR-OIB
Implementation
(string-length(.) = 11 and string-length(translate(., $Numerics, '')) = 0)
or
(string-length(.) = 13 and starts-with(., 'HR') and string-length(translate(substring(., 3, 11), $Numerics, '')) = 0)