Skip to content

Reports

Both tools are read-only and take no arguments — same computations apps/web’s Reports page runs.

Invoices with status='overdue', joined to the student and plan they belong to, oldest due_date first.

Returns a list of { invoice_id, amount, due_date, student_name, plan_name }.

Count of actively-enrolled students per teacher (via classesclass_enrollments where status='active'), highest first. This is the basis for teacher pay.

Returns a list of { teacher_id, teacher_name, student_count }.