VRBL-INV-PT-2p1-267

Basic Info

Rule For the Additional Document Reference Scheme ID = ANG the Additional Document Reference Document Description must be "QR_CODE" and Attachment Mime Code must be "text/plain".
Context /ubl:Invoice/cac:AdditionalDocumentReference
Pattern vrbl-invoice-pt-2p1
Severity fatal

Implementation

not(cbc:ID/@schemeID = 'ANG')
or
(
	cbc:DocumentDescription = 'QR_CODE'
	and
	cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode = 'text/plain'
)