BugFix 腿加上币种

This commit is contained in:
锦麟 王
2026-08-27 18:40:46 +08:00
parent 117ea3e1d2
commit 35d68acc02
2 changed files with 7 additions and 1 deletions
@@ -54,6 +54,12 @@ namespace YLErp.Modules.SwapModule
//两位 AwayFromZero 舍入
var rounded = SwapAdditionalMarginService.BuildEodMarginLeg(td, 1000.005, SettleDate, optId: 0);
Assert.AreEqual(1000.01m, rounded.InterestPrincipalFix);
//币种:取交易结算币种;交易未设置时回退系统默认 CNY(与存量手工腿口径一致,2026-08-27 修复空币种)
Assert.AreEqual("CNY", leg.Currency);
td.SettlementCurrency = null;
Assert.AreEqual(ConsGlobal.Currency.CNY,
SwapAdditionalMarginService.BuildEodMarginLeg(td, 100, SettleDate, optId: 0).Currency);
}
/// <summary>