VRBL-INV-TR-1p2-57

Basic Info

Rule If the Invoice Subtype Code is VRBL:TR:IHRACAT, the Invoice Line Shipment Goods Item Required Customs ID 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:GoodsItem/cbc:RequiredCustomsID) >= 1)