Element 'ram:SubjectCode' may occur at maximum 1 times.
The same ram:IncludedNote contains ram:SubjectCode more than once.
A note contains no more than one subject code in ram:SubjectCode. Multiple occurrences do not conform to the structure checked by this rule.
A note associated with the invoice line document contains multiple ram:SubjectCode elements. The structure allows at most one in each ram:IncludedNote.
- Keep no more than one
ram:SubjectCodewithin the note. - Regenerate the invoice and validate it again.
<ram:IncludedNote> <ram:SubjectCode>CODE-1</ram:SubjectCode> <ram:SubjectCode>CODE-2</ram:SubjectCode> </ram:IncludedNote>
<ram:IncludedNote> <ram:SubjectCode>CODE-1</ram:SubjectCode> </ram:IncludedNote>
Technical details
The test counts the ram:SubjectCode elements within the current ram:IncludedNote and allows no more than one.
The rule applies to the subject code of a note (ram:IncludedNote) associated with the invoice line document.
rule/@context)assert/@test)