IIUC the @roliver example says:
today 15th January issue and invoice with invoice_date
today (15th January) and accounting_date
30th December.
This is allowed in Spanish account because goods were shipped on 30th December, so taxes can be posted on this date.
Indeed accounting date would be 30th December.
But invoice taxes need to be on December as mentioned above.