Merge branch 'glms/feature/1.4.2-0806' into glms/feature/1.4.2
This commit is contained in:
@@ -144,6 +144,10 @@ namespace YLErp.Modules.SwapModule
|
||||
if (unwindData.FlowEvents.Any(x => !string.IsNullOrEmpty(x.UnderlyingCode)))
|
||||
{
|
||||
CalcCloseAmount(unwindData);
|
||||
if (eventType == (int)SwapEventTypeEnum.互换)
|
||||
{
|
||||
unwindData.SwapMarginAmount = 0;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2013,7 +2017,7 @@ namespace YLErp.Modules.SwapModule
|
||||
}
|
||||
string action = eventType == (int)SwapEventTypeEnum.互换 ? ClientCashInCashOut.系统操作_互换 : ClientCashInCashOut.系统操作_平仓费;
|
||||
int clientCashId = AddClientCash(td, Convert.ToDouble(-swapEvent.unwindData.SwapRealizedPnL), action, swapEvent.unwindData.ValueDate);
|
||||
if (swapEvent.unwindData.SwapMarginAmount != 0)
|
||||
if (eventType == (int)SwapEventTypeEnum.平仓 && swapEvent.unwindData.SwapMarginAmount != 0)
|
||||
{
|
||||
AddClientCash(td, Convert.ToDouble(swapEvent.unwindData.SwapMarginAmount), ClientCashInCashOut.系统操作_应付预付金, swapEvent.unwindData.ValueDate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user