Accounts Receivable

Office Payments

Path/office-payments
Statustodo
Drill-down pages—
Pop-ups(+2 inline)
Tabs—
API routes/api/data/office-payments
/api/data/offices

Business rules

Written when this page is worked on (docs/BUSINESS-RULES.md).

Database tables & columns

TableColumns used
dentrix_officesactive, dentrix_id, display_name, name, pay_slug, payments_enabled, stripe_account_id
office_payments(columns not named in the SQL)
office_subscriptions(columns not named in the SQL)

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • OfficePayments.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
            • ReportHeader.tsx
            • sortable-grid.tsx
        • hooks/
          • useApi.ts
        • services/
          • api.ts
    • worker/
      • src/
        • routes/
          • data.ts
        • utils/
          • office.ts