XRechnung 2.3.0 · UBL

UBL-CR-666

XRechnung 2.3.0 · UBL

fatalschema

Original rule text

[UBL-CR-666]-A UBL invoice shall not include an AdditionalDocumentReference simultaneously referring an Invoice Object Identifier and an Attachment

Stored validation assertion
not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode = '130']/cac:Attachment)