Prevent using same sequence on earlier customer invoice: which date to use?

The consistency is against issue date …
Anyway we have just queried to “agencia tributaria” about it.

PeriodoLiquidacion: { Ejercicio: 2021, Periodo: 12}
FechaExpedicionFacturaEmisor: 15/01/2022
FechaRegContable: 30/12/2021
FechaOperacion: 30/12/2021