From 7809ba974181fa6e19777666effd42ac7695ba23 Mon Sep 17 00:00:00 2001 From: Chris Chen Date: Thu, 25 Jun 2026 16:40:40 -0700 Subject: [PATCH] feat(1099): add Form1099BoxId mapping FKs and Expense.PayeeId Co-Authored-By: Claude Opus 4.8 --- API/ROLAC.API/Entities/Expense.cs | 2 ++ API/ROLAC.API/Entities/ExpenseCategoryGroup.cs | 3 +++ API/ROLAC.API/Entities/ExpenseSubCategory.cs | 3 +++ 3 files changed, 8 insertions(+) diff --git a/API/ROLAC.API/Entities/Expense.cs b/API/ROLAC.API/Entities/Expense.cs index 3597676..34daddb 100644 --- a/API/ROLAC.API/Entities/Expense.cs +++ b/API/ROLAC.API/Entities/Expense.cs @@ -11,6 +11,7 @@ public class Expense : SoftDeleteEntity, IAuditable public string Description { get; set; } = null!; public string? VendorName { get; set; } public int? MemberId { get; set; } + public int? PayeeId { get; set; } // 1099 recipient attribution (header-level) public string? CheckNumber { get; set; } public DateOnly ExpenseDate { get; set; } public string? ReceiptBlobPath { get; set; } @@ -25,5 +26,6 @@ public class Expense : SoftDeleteEntity, IAuditable public Ministry? Ministry { get; set; } public Member? Member { get; set; } + public Payee1099? Payee { get; set; } public List Lines { get; set; } = new(); } diff --git a/API/ROLAC.API/Entities/ExpenseCategoryGroup.cs b/API/ROLAC.API/Entities/ExpenseCategoryGroup.cs index 7349323..ac87791 100644 --- a/API/ROLAC.API/Entities/ExpenseCategoryGroup.cs +++ b/API/ROLAC.API/Entities/ExpenseCategoryGroup.cs @@ -12,5 +12,8 @@ public class ExpenseCategoryGroup : AuditableEntity, IAuditable public int? Form990LineId { get; set; } public Form990ExpenseLine? Form990Line { get; set; } + public int? Form1099BoxId { get; set; } // null = not 1099-reportable + public Form1099Box? Form1099Box { get; set; } + public List SubCategories { get; set; } = []; } diff --git a/API/ROLAC.API/Entities/ExpenseSubCategory.cs b/API/ROLAC.API/Entities/ExpenseSubCategory.cs index 0c20a3a..0719d0d 100644 --- a/API/ROLAC.API/Entities/ExpenseSubCategory.cs +++ b/API/ROLAC.API/Entities/ExpenseSubCategory.cs @@ -13,5 +13,8 @@ public class ExpenseSubCategory : AuditableEntity, IAuditable public int? Form990LineId { get; set; } public Form990ExpenseLine? Form990Line { get; set; } + public int? Form1099BoxId { get; set; } // null = not 1099-reportable + public Form1099Box? Form1099Box { get; set; } + public ExpenseCategoryGroup? Group { get; set; } }