feat(finance): expose Form 990 line catalog endpoint

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Chris Chen
2026-06-24 19:36:01 -07:00
parent 3f61e9ceaf
commit 1a03a1cbba
4 changed files with 27 additions and 0 deletions
@@ -15,6 +15,19 @@ public class Form990ReportService : IForm990ReportService
private readonly AppDbContext _db;
public Form990ReportService(AppDbContext db) => _db = db;
public async Task<List<Form990ExpenseLineDto>> GetLinesAsync() =>
await _db.Form990ExpenseLines.AsNoTracking().Where(l => l.IsActive)
.OrderBy(l => l.SortOrder)
.Select(l => new Form990ExpenseLineDto
{
Id = l.Id,
LineCode = l.LineCode,
Name_en = l.Name_en,
Name_zh = l.Name_zh,
SortOrder = l.SortOrder,
})
.ToListAsync();
public async Task<FunctionalExpenseStatementDto> GetFunctionalExpenseStatementAsync(DateOnly? from, DateOnly? to)
{
var lines = await _db.Form990ExpenseLines.AsNoTracking()