BR-FR-05_BT-22_AAB

BR-FR-05/BT-22 : La mention relative à l’escompte ou à son absence (code AAB) est absente. Elle est obligatoire dans les notes (BG-1).

In English The note on the early payment discount, or that there is none (subject code AAB) is missing; the invoice notes (BG-1) must have it.

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
exists($notes[ram:SubjectCode = 'AAB'])

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