Faktura

UBL-CR-666

fatalEN 16931syntax binding ruleUBL

A UBL invoice shall not include an AdditionalDocumentReference simultaneously referring an Invoice Object Identifier and an Attachment

Why it fails

One AdditionalDocumentReference is being used both as an invoiced object identifier and as a supporting document.

How to fix it

Split them into two separate AdditionalDocumentReference groups: one with DocumentTypeCode 130 for the invoiced object, another for the attachment.

What the validator checks

UBL — context /ubl:Invoice | /cn:CreditNote

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

Related rules

Part of UBL-CR — UBL restrictions.

Validate an invoice against this rule →