BugFix 腿加上币种
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace YLErp.Modules.SwapModule.Margin
|
||||
HappenDate = settleDate,
|
||||
PosiStartDate = td.StartDate ?? settleDate,
|
||||
PosiMatuirityDate = td.ExerciseDate,
|
||||
Currency = td.SettlementCurrency,
|
||||
Currency = td.SettlementCurrency ?? ConsGlobal.Currency.CNY,
|
||||
FundTag = null,
|
||||
OptId = optId,
|
||||
OptName = EodOptName,
|
||||
|
||||
Reference in New Issue
Block a user