Rules
VRBL-INV-TR-1p2-56
Basic Info
| Rule | If the Invoice Subtype Code is VRBL:TR:IHRACAT, either the Shipment Transport Mode Code or the Invoice Line Shipment Transport Mode Code 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:Shipment/cac:ShipmentStage/cbc:TransportModeCode) >= 1)
or (count(cac:Delivery/cac:Shipment/cac:ShipmentStage/cbc:TransportModeCode) >= 1)