Document reference type code · CII-DT-018
- Severity · Error
- Applies to · CII
- Editorial review pending
This issue concerns document reference type code. The ram:TypeCode element is permitted only in a supporting document reference with code 50, 130 or 916.
As of
Who can correct it?
The sender can correct the invoice.
How to fix it
- Omit the type code on other references. Use the allowed code that matches the purpose of an additional document reference.
- CII · //ram:*[ends-with(name(), 'ReferencedDocument')]/ram:TypeCode
Rule text and source
Paraphrase · The ram:TypeCode element is permitted only in a supporting document reference with code 50, 130 or 916.
Message to the sender
Hello,
Validation of the invoice XML for {invoiceNumber} returned CII-DT-018. The message concerns document reference type code. Please correct the export and send me the updated XML file.
Thank you.Example
Triggers the rule: A delivery note reference has a type code. After correction: The delivery note reference omits the type code.
Rule versions
CEN · EN 16931 (KoSIT) 1.3.16
CEN · EN 16931 1.3.17