0%
balqalam Logo
balqalam
FeaturesCommunityPricingDocumentation
Login
  • Introduction
  • Help center
  • Common questions
  • Get Started
  • Localhost
  • Architecture
  • Structure
  • Pattern
  • Page
  • Layout
  • Content
  • Types
  • Config
  • Actions
  • Queries
  • Authorization
  • Validation
  • Form
  • Table
  • Detail
  • Card
  • Util
  • Hooks
  • List Params
  • Views
  • README.md
  • ISSUE.md
  • Technology Stack
  • Database
  • File
  • CDN Assets
  • Entry Points
  • Dashboard
  • Authentication
  • Credentials
  • OAuth
  • Flow Diagrams
  • Multi-Tenancy
  • Offline
  • Onboarding
  • Onboarding Videos
  • Add Values
  • Admission
  • Application
  • Attendance
  • Compliance
  • Profile
  • Exams
  • Exam Wizard
  • Timetable
  • Classrooms
  • Notifications
  • Conference
  • LMS (Lumos)
  • Finance
  • Fee Management
  • Invoice
  • Wallet
  • Salary
  • Payroll
  • Timesheet
  • Expenses
  • Budget
  • Receipt
  • Accounts
  • Banking
  • Reports
  • Dashboard
  • Permissions
  • Messages
  • Integration Flow
  • Provision
  • AI Document Processing
  • Document Intelligence
  • Internationalization
  • Translation
  • Translation Guide
  • Icons
  • Docs Factory
  • Inspiration
  • Listings
  • Teachers
  • Students
  • Catalog
  • Library
  • Contributing
  • Code of conduct
  • GitHub Workflow
  • Database Seeds
  • Database Safety
  • Test Accounts
  • Bulk import
  • Playwright
  • Prettier
  • Block Rebound
  • Transportation

Reports

PreviousNext

Financial statements — balance sheet, P&L, and trial balance — generated off the general ledger. Generators and date ranges work, but exports are unstyled, there's no email delivery, multi-currency conversion is broken, and the ledger only holds fee-payment data today.

Reports generates standard financial statements from the ledger. A caveat compounds here: because only fee payments post to the ledger (5 of 6 posting functions are unwired), statements understate everything except fee revenue until posting is completed.

Flow

Pick a report + date range  →  generate from journal entries + account balances
  →  view  →  export (wired to the table, but unstyled / unbranded)

Status

FeatureStatus
Balance sheetProduction
Profit & loss (income statement)Production
Trial balanceProduction
General-ledger drill-downProduction
Custom date rangeProduction
Exports (PDF / XLSX / CSV)Wired to the DataTable but unstyled / unbranded
Report email deliveryPlanned
Scheduled report export (cron)Planned
Custom report builder UIPlanned
Multi-currency conversionBroken for multi-currency schools
Cash-flow statement (as a route)Planned (generator referenced, no route)

Routes

RoutePageStatus
/{lang}/finance/reportsOverviewReady
/{lang}/finance/reports/allAll reports listReady
/{lang}/finance/reports/profit-lossIncome statement (P&L)Ready
/{lang}/finance/reports/balance-sheetBalance sheetReady
/{lang}/finance/reports/trial-balanceTrial balanceReady

Server actions

ActionPurpose
generateBalanceSheetAssets = liabilities + equity, as-of date
generateIncomeStatementRevenue − expenses over a period
generateTrialBalanceAll accounts with debit/credit totals
getAvailableReportsList report types + saved reports

Ledger / accounting

Reports consume the ledger (journal entries + account balances). They post nothing themselves. Their accuracy is bounded by what posts to the ledger — today, fee payments and manual journal entries only.

Schema

prisma/models/finance-reports.prisma: FinancialReport — schoolId-scoped, stores generated report metadata/snapshots.

Stubs

  • reports/validation.ts:36,47 — hardcoded date-range messages.
  • Multi-currency conversion path is known-broken (see Status).

Tests

None. Notable missing invariants: balance sheet (assets = liabilities + equity), trial balance (total debit = total credit), P&L period aggregation.

Key files

ComponentPath
Server actionssrc/components/school-dashboard/finance/reports/actions.ts
Contentsrc/components/school-dashboard/finance/reports/content.tsx
Schemaprisma/models/finance-reports.prisma

See also

  • Finance — block overview
  • Accounts — the ledger reports read from
  • Budget — variance data source
BankingDashboard

On This Page

FlowStatusRoutesServer actionsLedger / accountingSchemaStubsTestsKey filesSee also

Built by Databayt ·

Welcome to balqalam.

A great journey is about to begin.