ISDOC-4.1.1

Pro typ dokladu 2, 3 a 6 musí existovat vazba na původní doklad. Konkrétně tedy pro DocumentType = 2, 3, 6 musí existovat element OriginalDocumentReference a musí byt neprázdný.

In English Documents of type 2, 3 and 6 (credit note, debit note, credit note to a taxed advance invoice) must refer to the original document: OriginalDocumentReference must be given and not empty.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
isdoc:Invoice[isdoc:DocumentType = (2,3,6)]
Test
isdoc:OriginalDocumentReferences/*

Checked with ISDOC 6.0.2