BR-FR-06_BT-21_AAB

BR-FR-06/BT-21 : Le code sujet AAB (mention d’escompte ou d’absence d’escompte) ne doit apparaître qu'une seule fois dans les notes (BG-1).

In English The subject code AAB (the early payment discount, or that there is none) may appear only once in the invoice notes (BG-1).

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
rsm:CrossIndustryInvoice/rsm:ExchangedDocument
Test
count($notes[ram:SubjectCode = 'AAB']) le 1

Checked with France e-invoice (CII), France Factur-X EN 16931, France EXTENDED-CTC-FR (CII), France Factur-X EXTENDED, France Factur-X BASIC WL