feat: emit live Excel formulas for ร.15 revenue-estimate semester rows
continuous-integration/drone/push Build is passing

Replace static computed values for F/H/J/L/N/P/R with FormulaA1 cell
formulas (=B-D, =(F*10)/100, etc.) so the exported report is auditable
and recalculates in Excel, matching a reference ร15.xlsx. P/R now use
the per-row contribution/framework percent passed from rmutr-api
instead of a fixed 40%.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KhYYmBPw4LhYXoDnTNz2xV
This commit is contained in:
Nut.ไปเรื่อย
2026-08-05 11:26:41 +07:00
parent d9bc1f742f
commit ec4b99f53e
2 changed files with 12 additions and 7 deletions
+2
View File
@@ -46,6 +46,8 @@ namespace rmutr_report.Models
public decimal? contribution_central_budget { get; set; }
public decimal? contribution_central_expenditure { get; set; }
public decimal? expenditure_limit { get; set; }
public decimal? contribution_percent { get; set; }
public decimal? framework_percent { get; set; }
public int? topic_type { get; set; }