Reports - Accounting

LEDGER Report

Path/ledger-report
Statustodo
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

TableColumns used
agent_ledger_entriesamount, 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_patientsdentrix_id, first_name, first_name_encrypted, last_name, last_name_encrypted

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • LedgerReport.tsx

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
        • hooks/
          • useApi.ts
        • services/
          • api.ts
    • 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