Rules
VRBL-INV-TR-1p2-86
Basic Info
| Rule | If the invoice subtype is VRBL:TR:IDIS, the supplier must contain a shipment number in the format SE-0000000 or ES-0000000. |
| Context |
/ubl:Invoice/cac:AccountingSupplierParty/cac:Party
|
| Pattern | vrbl-invoice-tr-1p2 |
| Severity | fatal |
Implementation
not(
/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode = concat($VRBL-TR-Prefix, 'IDIS')
)
or count(
cac:PartyIdentification/cbc:ID[
@schemeID = concat($VRBL-TR-Prefix, 'SEVKIYATNO')
and (starts-with(normalize-space(.), 'SE-') or starts-with(normalize-space(.), 'ES-'))
and string-length(normalize-space(.)) = 10
and translate(substring(normalize-space(.), 4), $Numerics, '') = ''
]
) > 0