Reports - Accounting
LEDGER Report
| Path | /ledger-report |
|---|---|
| Status | todo |
| Drill-down pages | — |
| Pop-ups | (+2 inline) |
| Tabs | — |
| API routes | /api/data/offices/api/reports/ledger |
Business rules
Written when this page is worked on (docs/BUSINESS-RULES.md).
Database tables & columns
| Table | Columns used |
|---|---|
agent_ledger_entries | amount, applied_payments, category, description, modified_date, office_name, patient_id, proc_code, proc_description, provider, subcategory, synced_at, trans_date |
dentrix_offices | (columns not named in the SQL) |
dh_patients | dentrix_id, first_name, first_name_encrypted, last_name, last_name_encrypted |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- LedgerReport.tsx
- pages/
- src/
- web/
Shared code it uses (followed through its imports and the helpers its API calls; sign-in/access plumbing and UI primitives left out)
- apps/
- web/
- src/
- components/
- reports/
- DentrixSourceNote.tsx
- HowItWorksNote.tsx
- TableLoading.tsx
- reports/
- hooks/
- useApi.ts
- services/
- api.ts
- components/
- src/
- worker/
- src/
- db/
- index.ts
- routes/
- data.ts
- reports.ts
- services/
- phi-read.ts
- utils/
- crypto.ts
- office.ts
- phi-access.ts
- phi-crypto.ts
- db/
- src/
- web/