A credit note names the invoice it credits with invoiceReference. Until now,
there was no field for that invoice's date.
French invoicing rule BR-FR-CO-05 ignores a reference without its date, so a
French credit note sent through getpeppr failed that rule after it had been
accepted.
What changed
- New field:
invoiceReferenceDate, the issue date of the credited invoice, asYYYY-MM-DD. It is sent with the reference, for every country. - Required under the French regime. A credit note with a
franceblock that lacksinvoiceReferenceorinvoiceReferenceDateis refused by getpeppr with400 invoices.france_credit_note_reference_invalid, before anything is submitted. The message names the field to add. - The SDK's
validateInvoice()refuses aninvoiceReferenceDatethat is notYYYY-MM-DD.
Credit notes that do not declare the French regime are not affected; the date is optional for them.
See credit notes and the French regime in the documentation.