Faktura

UBL-SR-43

fatalEN 16931syntax binding ruleUBL

Scheme identifier shall only be used for invoiced object (document type code with value 130 or 50)

Why it fails

A schemeID is used on a document reference that is not an invoiced object.

How to fix it

The scheme identifier is only meaningful when the DocumentTypeCode is 130 or 50. Remove it elsewhere.

What the validator checks

UBL — context cac:AdditionalDocumentReference

((cbc:DocumentTypeCode='130') or ((local-name(/*) = 'CreditNote') and (cbc:DocumentTypeCode='50')) or (not(cbc:ID/@schemeID) and not(cbc:DocumentTypeCode)))

Related rules

Part of UBL-SR — UBL cardinality.

Validate an invoice against this rule →