@@ -1575,15 +1575,6 @@ namespace YLErp.Modules.SwapModule
|
||||
}
|
||||
|
||||
td.Notional = td.TradeAmount;
|
||||
// 到期互换审核通过后应设为"已到期"(与 SwapIncome cs:1512-1517 对齐)。
|
||||
// 必须放在 td.Notional = td.TradeAmount 之后,否则清零会被覆盖。
|
||||
// 仅对互换(eventType=3)生效,不影响平仓(eventType=2)审核。
|
||||
if (eventType == (int)SwapEventTypeEnum.互换 && td.ExerciseDate <= swapEvent.unwindData.ValueDate)
|
||||
{
|
||||
td.Notional = 0;
|
||||
td.StockEqvNotional = 0;
|
||||
td.TradeStatus = "已到期";
|
||||
}
|
||||
UpdateInitalPosition(flowList, swapEvent.unwindData, eventType);
|
||||
DbContext.SaveChanges();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user