VRBL-INV-RS-1p0-11
Basic Info
| Rule | When the Seller Group is Serbian, and the Buyer Party Identification ID is sent, then it must starting with "JBKJS:" followed by the five digits. |
| Context |
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID
|
| Pattern | vrbl-invoice-rs-1p0 |
| Severity | fatal |
Implementation
not($RSSupplierCountry = 'RS')
or
substring(., 1, 6) = 'JBKJS:'
and
string-length(substring(., 7)) = 5
and
string-length(translate(substring(., 7, 5), $Numerics, '')) = 0