Rules
VRBL-INV-TR-1p2-54
Basic Info
| Rule | If the Invoice Subtype Code is VRBL:TR:IHRACAT, either the Delivery Terms ID or the Invoice Line Delivery Terms ID Incoterms must be provided. |
| Context |
/ubl:Invoice/cac:InvoiceLine
|
| 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, 'IHRACAT'))
or (count(../cac:Delivery/cac:DeliveryTerms/cbc:ID[@schemeID='INCOTERMS']) >= 1)
or (count(cac:Delivery/cac:DeliveryTerms/cbc:ID[@schemeID='INCOTERMS']) >= 1)