UBL-CR-665 – EN 16931 validation rule
Official message
[UBL-CR-665] A UBL invoice should not include the AdditionalDocumentReference ID schemeID unless the DocumentTypeCode equals '130'
- Severity
- Warning Note: this does not make the invoice invalid, but it should be checked.
- Applies to
- EN 16931 (UBL)
For developers: test expression per syntax
EN 16931 (UBL) (UBL)
Context: /ubl:Invoice | /cn:CreditNote
not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode != '130' or not(cbc:DocumentTypeCode)]/cbc:ID/@schemeID)
Related validation rules
Last updated:
Explanation of the validation rule, not legal or tax advice.