- Install jszip dependency (~100KB, pure JS)
- New src/lib/server/export/financial.ts builds a year-scoped ZIP
with one CSV per logical table: company, projects, parties (incl
archived), employees (incl terminated), budget_allocations, expenses,
invoices + line items, salary_history (effective on/before year end),
payslips + line items, packages (with carrier label and customs link),
external_transactions (with provider label and matched expense),
company_log
- All CSVs prefixed with UTF-8 BOM for Excel/Thai support
- Reference tables include soft-deleted rows so historical FKs resolve
- Routes and UI to follow in next commit
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Multi-company budget/project tracking tool built with SvelteKit 5,
PostgreSQL (Drizzle ORM), and Tailwind CSS v4.
Features:
- Auth: local (email/password with Argon2) + generic OIDC
- 4 roles per company: admin, manager, user, viewer
- Multi-company with per-company user membership
- Projects with budget allocation from company pool
- Expense submission with approval workflow
- Categories and tags for expense organization
- Reports with spending breakdowns (by category, project, time)
- CSV import for Actual Budget migration
- Company audit log tracking all budget and admin actions
- Remaining budget hero display on overview and budget pages
- Admin-only company creation; new users wait for invitation
- Deployment configs for systemd + nginx (bare metal/Proxmox)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>