TRS-ZS-721 资金划转

This commit is contained in:
吴方海
2025-09-05 14:11:15 +08:00
parent eb4a51110e
commit ac07eae81e
10 changed files with 229 additions and 23 deletions
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using DocumentFormat.OpenXml.Drawing.Charts;
using Newtonsoft.Json;
using NPOI.SS.Formula.Functions;
using NPOI.SS.UserModel;
using Org.BouncyCastle.Asn1.Ocsp;
@@ -525,6 +526,44 @@ namespace YLErp.Modules.EodModule.SettlementModule
fundObject.OtherFund.Add(clientEntryexit.CurrencyCode, clientEntryexit.Money ?? 0);
}
}
else if (clientEntryexit.Direction.Equals("划转")) {
if (clientEntryexit.TransferOutAccount == "初保账户")
{
AddToFund(fundObject.InFund, clientEntryexit.CurrencyCode, -clientEntryexit.Money ?? 0);
if (clientEntryexit.TransferInAccount == "追保账户")
{
AddToFund(fundObject.VmInFund, clientEntryexit.CurrencyCode, clientEntryexit.Money ?? 0);
}
else
{
WinLoss += clientEntryexit.Money ?? 0;
}
}
else if (clientEntryexit.TransferOutAccount == "追保账户")
{
AddToFund(fundObject.VmInFund, clientEntryexit.CurrencyCode, -clientEntryexit.Money ?? 0);
if (clientEntryexit.TransferInAccount == "初保账户")
{
AddToFund(fundObject.InFund, clientEntryexit.CurrencyCode, clientEntryexit.Money ?? 0);
}
else
{
WinLoss += clientEntryexit.Money ?? 0;
}
}
else
{
WinLoss -= clientEntryexit.Money ?? 0;
if (clientEntryexit.TransferInAccount == "初保账户")
{
AddToFund(fundObject.InFund, clientEntryexit.CurrencyCode, clientEntryexit.Money ?? 0);
}
else
{
AddToFund(fundObject.VmInFund, clientEntryexit.CurrencyCode, clientEntryexit.Money ?? 0);
}
}
}
else
{
if (ClientCashInCashOut._期权费.Equals(clientEntryexit.Action))