Error messages for credit notes outside the scope
Issue
When processing receipts, credit notes excluded from the scope could appear in the log with an anomaly message concerning their type, date, or currency.
Impact
These messages incorrectly reported an error on documents that were not meant to be processed, making the summary harder to read.
Fix
The document type is now checked before performing checks that are unnecessary for its processing. Credit notes that are normally excluded are skipped without a message. Missing data on an eligible invoice and inconsistencies in an existing event are still reported.
Expected result
Normal exclusions no longer generate false errors; genuine anomalies remain visible in the log.


