If the Invoice Free Text subject Code (BT-21) is specified, either the coded message free text (BT-X-5) or the message free text (BT-22) must be specified, or both. If both BT-X-5 and BT-22 are specified, both must have the same meaning.
An ram:IncludedNote contains ram:SubjectCode, but neither ram:ContentCode nor ram:Content is present. The test checks that at least one of these two text elements exists.
The subject code identifies the type of free text. An associated coded or plain message text makes the note’s content available.
The note contains a subject code but no message text. You can add either coded text or plain text.
- Check the note set with
Note.SubjectCode. - Add message text using
Note.ContentCodeor aram:Contentelement. - Generate the invoice again and validate it.
<ram:IncludedNote> <ram:SubjectCode>AAI</ram:SubjectCode> </ram:IncludedNote>
<ram:IncludedNote> <ram:SubjectCode>AAI</ram:SubjectCode> <ram:Content>Message</ram:Content> </ram:IncludedNote>
Note.ContentCode(Header level: BT-22)Note.SubjectCode(Header level: BT-21)
Technical details
The XPath test checks only whether ram:ContentCode or ram:Content is present. It does not check the matching meaning of both values mentioned in the message text.
The rule applies to ram:IncludedNote within the invoice document data when ram:SubjectCode is specified.
rule/@context)assert/@test)