Cancel a document with a mandatory reason; the PDF is stamped REVOKED and the QR page shows the reason.
Finish first: The issued register, re-downloads and the print log
You should see: The dialog Revoke BON/2026-27/00004?: "The document stays in the register, its PDF is stamped REVOKED and the QR verification shows it as revoked with your reason."
You should see: Toast "BON/2026-27/00004 revoked". The badge turns Revoked and a red alert shows the date and reason. The demo school already has one such bonafide for a Class 10 student.
You should see: Red status on the verify page; the register row shows Revoked.
You should see: A new Issued row; the revoked one stays in the register.
Lost or replaced ID cards are handled the same way: revoke the old card so its QR stops validating, then generate a new batch or single card.