summaryrefslogtreecommitdiff
path: root/src/FundLab.Api/App.fs
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-21 22:08:53 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-21 22:08:53 +0800
commit4c60174fc66927db5536bc2fe06574c753140055 (patch)
treec18fb8650d097f584cd8e141903cff2ffae0d0fd /src/FundLab.Api/App.fs
parent722ec6c19c0c64ea5348c6bc3aefc0061bd96307 (diff)
downloadfund-lab-4c60174fc66927db5536bc2fe06574c753140055.tar.gz
Add dividend history visibility (3d-9a)
Expose a deterministic source key on booked dividend records and surface a read-only dividend history panel with empty state, backed by API tests and browser QA assertions.
Diffstat (limited to 'src/FundLab.Api/App.fs')
-rw-r--r--src/FundLab.Api/App.fs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/FundLab.Api/App.fs b/src/FundLab.Api/App.fs
index b5b2064..38debc3 100644
--- a/src/FundLab.Api/App.fs
+++ b/src/FundLab.Api/App.fs
@@ -156,6 +156,7 @@ type DividendResponse =
navDate: string
dps: string
mode: string
+ sourceKey: string
status: string
grossCash: string option
creditedUnits: string option
@@ -613,6 +614,7 @@ module App =
navDate = dateText record.NavDate
dps = decimalText record.Dps
mode = DividendPolicy.modeText record.Mode
+ sourceKey = DividendPolicy.schemeKey record.FundId record.InstrumentCode record.NavDate record.Mode
status = record.Status
grossCash = record.GrossCash |> Option.map cashText
creditedUnits = record.CreditedUnits |> Option.map decimalText