Archive

Archive paid invoices and departed-student notes to PDF, retain the records for 7 years, then purge them once the retention clock expires. Archiving and deletion are strictly separated — nothing is deleted until you verify the PDF, and the server refuses to purge anything younger than 7 years.

Invoice Archival (7-year retention)

Step 1 — Generate PDF Archives

For each student, combines every paid invoice with a payment date on or before the cutoff into a single PDF (named YYYYMMDD-YYYYMMDD_StudentName.pdf). The included invoices are marked as pending review — no data is deleted at this stage. Policy: invoices are archived one year after payment and retained for seven years from the payment date; the cutoff cannot be set to less than a year.

Step 2 — Review Pending Archives
0 students

One PDF per student, combining every paid invoice in the period. Open each PDF, confirm it accurately represents the included invoices, then mark it verified.

No archives awaiting review.

Step 3 — Verified Archives (Retained)
0 students

Verified archives are kept in the database, hidden from active billing, until their 7-year retention clock expires. Nothing here is deleted yet — use Step 4 once retention has passed.

No verified archives yet.

Step 4 — Purge Past-Retention Archives
0 students

Only verified archives whose 7-year retention has expired appear here. Each purge deletes the invoice records and their linked session records; the PDF stays in storage. The server refuses anything younger than 7 years.

No archives past their retention date yet.

Dev tools (temporary)

Resets archival_status, archival_pdf_url, and verification fields to null on every invoice, so the whole run can be re-executed. Does not touch invoice data or delete stored PDFs.

Student Notes Archival

Student Notes Archival

For a departed student (inactive, no future sessions, last session at least 1 year ago), compiles every session's notes plus tutor profile notes into one PDF. The notes stay in the database until the 7-year retention clock expires, then are purged with the invoices.

No students currently eligible for notes archival.

Review Pending Notes Archives
0

Open each PDF, confirm it captures the notes, then verify it.

No notes archives awaiting review.

Verified Notes Archives
0

Retained until the 7-year clock expires, then purge-ready below.

No verified notes archives.