A fiscal device works in fiscal days. The day is opened, each receipt is signed and sent to FDMS, and the day is closed. Every receipt carries two numbers, one counting within the day and one across the device's life, and is chained to the receipt before it by its hash.
A day that holds a receipt with a Red error can't be closed by the device. Only ZIMRA can close it (ReceiptsWithValidationErrors). The usual cause is a wrong clock: see Exercise 2 in the sandbox.
