XRechnung 2.0.2 · UBL

UBL-CR-665

XRechnung 2.0.2 · UBL

warningschema

Original rule text

[UBL-CR-665]-A UBL invoice should not include the AdditionalDocumentReference ID schemeID unless the DocumentTypeCode equals '130'

Stored validation assertion
not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode != '130' or not(cbc:DocumentTypeCode)]/cbc:ID/@schemeID)