An accountant sent us a screenshot. The reverse-charge note sat right there in the notes field, and our validator still refused to build the invoice.
She was right, and we were wrong in a boring way. Her note used a typographic hyphen and title case. Our check lowercased the string and searched for a substring from a list of accepted wordings. The same words to a human, different bytes to us.
The second bug was worse, and we only found it because of the first. On another document the notes held nothing but a payment term, net 30, transfer details. We accepted it. Not because it stated the VAT shift, but because the field was non-blank, and somewhere along the way "notes exist" had become our proof that the Art. 226(11a) mention existed.
One false negative that annoyed a client, one false positive that would have shipped a non-compliant invoice.
What we changed in euinvoice, our open-source invoicing library:
We normalise both sides before comparing (casefold, NFKD decomposition, drop combining marks, map hyphens to spaces, collapse whitespace) and match against the same folding of our accepted wordings. A note counts as the mention only if it actually says it. A payment term does not pass.
We stopped asking for a note when the regime decision already implies the shift, because that decision carries its own invoice note and we print it.
We split the error into two texts. A note that exists but stays silent about the shift gets told exactly that. A missing note gets told the parties do not imply reverse charge here. Same gap, different fix on the client's side, so it is two messages instead of one.
And we left the exemption branch deliberately looser: for exempt and zero-rated lines any non-blank reason passes, because the provision there is free text with no fixed wording to match. Strictness is not a virtue you apply evenly. It belongs where the law fixes the words.
The general lesson we carry into every compliance feature now: a required field is a claim, not a character count. If a regulator would read the content, your validator has to read it too.
You probably still have a field somewhere that passes on "this field is filled in" alone, rather than on saying the thing it is legally supposed to say.