reregister admin command:
Re-register all ledger vouchers.
If no arguments are given, run it on all vouchers. Otherwise every positional argument is expected to be the ref of a journal, and are being re-registered.
When called with no arguments, all movements are deleted from the database. This can help if the database contains movments with invalid voucher pointer.
(This module's source code is available here.)