6 Commits

Author SHA1 Message Date
Bernt f793fc46a4 feat: Add Income Statement to DashboardPage + fix account types
- Add Income Statement section with Revenue and Expenses tables
- Color-code revenue (green) and expenses (red)
- Show Net Income prominently at bottom
- Fix SQL query to use LOWER() for case-insensitive matching
- Update account types in DB (asset/liability/revenue/expense/equity)
- Balance Sheet and Income Statement now work correctly
2026-07-29 20:11:13 +00:00
Bernt bd28b60338 feat: BOC ledger-integration frontend + backend fixes
- Uppdatera robust_client.go med rätt tabellnamn (boc_chart_of_accounts, boc_journal_lines, boc_journal_entries)
- Uppdatera kolumnnamn (entry_id istället för journal_entry_id, account_code istället för code)
- Hantera både stora och små bokstäver för account_type
- Lägg till ledgerApi i frontend med BalanceSheet, IncomeStatement, MomsReport
- Uppdatera DashboardPage med Ledger KPI-kort
- Lägg till LEDGER_DB_URL i docker-compose.yml
- Uppdatera Dockerfile till golang:1.25-alpine
2026-07-29 19:53:39 +00:00
Bernt f367eaadb8 fix: BOC ledger-integration — fixa robust_client för riktig DB-schema
- Uppdatera GetBalanceSheet att använda entry_date istället för period
- Uppdatera GetIncomeStatement att använda entry_date istället för period
- Uppdatera GetMomsReport att använda entry_date och ta bort status
- Lägg till integrationstester som verifierar mot riktig DB
- Alla tester passerar: GetAccounts, GetBalanceSheet, GetIncomeStatement, GetMomsReport
2026-07-29 19:24:03 +00:00
Bernt e5623d2f84 feat: integrate Grafana dashboards into BOC DashboardPage
- Add Infrastructure Health section with CPU/Memory/Disk panels
- Add Service Status section with PM2/Docker panels
- Create GrafanaPanel component for iframe embedding
- Build passes successfully
2026-07-29 19:03:06 +00:00
Bernt af874040ca BOC v1.0: RS256 auth, Ledger integration, Prometheus metrics, CI/CD, backup 2026-07-28 23:08:32 +00:00
Bernt (LandveX AI) c2b10347b1 LINUS ROUND 1: Delete dead code (rust/c), generic Store[T], tests, slim main.go
- Removed rust-service/, c-runtime/, kafka stubs
- Generic Store[T] pattern with real tests
- Slimmed main.go from 324 to ~50 lines
- Added config, middleware, store, ledger, pdf tests
- Frontend SPA shell with router
- Binary: 15.5MB -> 12MB
2026-07-14 12:31:55 +00:00