From 2dedc30358d1724f60ab646b7a24e93f3672dff1 Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Tue, 22 Sep 2026 13:03:36 +0800 Subject: Debit available cash on manual stock and bond buys with ledger events (3d-34) --- tests/FundLab.Api.Tests/RebalanceStockTests.fs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/FundLab.Api.Tests/RebalanceStockTests.fs') diff --git a/tests/FundLab.Api.Tests/RebalanceStockTests.fs b/tests/FundLab.Api.Tests/RebalanceStockTests.fs index 3aed5ae..caaa7c9 100644 --- a/tests/FundLab.Api.Tests/RebalanceStockTests.fs +++ b/tests/FundLab.Api.Tests/RebalanceStockTests.fs @@ -69,7 +69,8 @@ type RebalanceStockTests(fixture: PostgresFixture) = repository().CreateStockTrade( key, fundId, - { InstrumentCode = code; StockName = Some "贵州茅台"; Quantity = quantity; Price = price } + { InstrumentCode = code; StockName = Some "贵州茅台"; Quantity = quantity; Price = price }, + debitAvailableCash = false ) with | StockTradeWriteResult.StockTradeCreated _ -> () -- cgit v1.2.3