kevin-asprec
a53ee9cd1c
feat(02-01): COA auto-provisioning on tenant signup + API routes + tests
- Create seed-coa.ts: seedChartOfAccounts(tx, tenantId) seeds 28 accounts in transaction
- Update tenant.ts: createTenant() calls seedChartOfAccounts inside $transaction block
- Add GET /api/accounting/accounts — list COA for tenant (requires read:Account)
- Add GET /api/accounting/periods — list accounting periods (requires read:Account)
- Add POST /api/accounting/periods/[id]/close — close period (requires manage:Account)
- Add 28 integration tests: COA definition, seeding, period management, createTenant integration
- All 121 tests pass (93 existing + 28 new)
2026-03-04 22:51:52 +08:00
..
2026-03-04 22:51:52 +08:00
2026-03-04 22:51:52 +08:00
2026-03-04 18:57:31 +08:00
2026-03-04 19:04:10 +08:00
2026-03-04 18:37:29 +08:00
2026-03-04 18:37:29 +08:00
2026-03-04 22:47:45 +08:00
2026-03-04 18:31:04 +08:00
2026-03-04 22:51:52 +08:00