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.
When SubjectCode is present, both ContentCode and Content are missing from IncludedNote. The test requires at least one of these two elements.
The subject code SubjectCode assigns the free text to a subject. At least one coded or uncoded free-text value must accompany such a subject.
The subject SubjectCode is present, but its free text is missing. You can complete the entry.
- Check
SubjectCodeinIncludedNote. - Add at least
ContentCodeorContentthere. - Check the values through
Note.SubjectCodeandNote.ContentCode. - Regenerate the invoice and validate it again.
<ram:IncludedNote> <ram:SubjectCode>AB</ram:SubjectCode> </ram:IncludedNote>
<ram:IncludedNote> <ram:SubjectCode>AB</ram:SubjectCode> <ram:Content>Information complémentaire</ram:Content> </ram:IncludedNote>
Note.ContentCode(Header level: BT-22)Note.SubjectCode(Header level: BT-21)
Technical details
The XPath checks for the presence of ContentCode or Content. It requires at least one of the elements; the test does not compare their meanings when both are present.
The rule applies to IncludedNote within ExchangedDocument when SubjectCode is present.
rule/@context)assert/@test)