docs(expense): correct subcategory seed count to 39 (matches DB_SCHEMA §8)
This commit is contained in:
@@ -347,7 +347,7 @@ Add config at the end of `OnModelCreating`:
|
||||
|
||||
- [ ] **Step 4: Add the category seed to DbSeeder**
|
||||
|
||||
In `DbSeeder.cs` add the seed data (11 groups + 38 subs from DB_SCHEMA §8):
|
||||
In `DbSeeder.cs` add the seed data (11 groups + 39 subs from DB_SCHEMA §8):
|
||||
```csharp
|
||||
// (GroupEn, GroupZh, Sort, SubItems[(SubEn, SubZh)])
|
||||
private static readonly (string En, string Zh, int Sort, (string En, string Zh)[] Subs)[] ExpenseCategorySeed =
|
||||
@@ -2951,7 +2951,7 @@ Expected: all tests PASS (Ministry, ExpenseCategory, Expense, MonthlyStatement,
|
||||
|
||||
- [ ] **Step 2: Start the API and confirm migrations + seed**
|
||||
|
||||
Start the API (per `project_build_run_env`). Confirm on startup: migration `AddExpenseModule` applies, and the DB has 10 ministries, 11 expense groups, 38 subcategories. Check via Swagger `GET /api/ministries` and `GET /api/expense-categories?includeInactive=true` (authorize with the seeded admin `admin@rolac.org / Admin1234!`).
|
||||
Start the API (per `project_build_run_env`). Confirm on startup: migration `AddExpenseModule` applies, and the DB has 10 ministries, 11 expense groups, 39 subcategories. Check via Swagger `GET /api/ministries` and `GET /api/expense-categories?includeInactive=true` (authorize with the seeded admin `admin@rolac.org / Admin1234!`).
|
||||
|
||||
- [ ] **Step 3: Verify the finance happy path via Swagger or UI**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user