修复成交日算了利息

This commit is contained in:
吴方海
2026-05-11 18:59:56 +08:00
parent bb95eb1396
commit 45cb3a1239
3 changed files with 9 additions and 10 deletions
@@ -325,7 +325,7 @@ namespace YLErp.Modules.SwapModule
/// <param name="interestMode">计息方式</param>
/// <param name="interestStart">计息开始日期</param>
/// <param name="interestEnd">计息结束日期</param>
public bool InitInterestDate(DateTime valueDate, DateTime? preSettleDate, trade td, bool tdClose,bool calcLastNew, out DateTime interestStart, out DateTime interestEnd)
public bool InitInterestDate(DateTime valueDate, DateTime? preSettleDate, trade td, bool tdClose, out DateTime interestStart, out DateTime interestEnd)
{
interestStart = td.StartDate.Value;
var exerciseDate = td.ExerciseDate.Value;
@@ -343,7 +343,7 @@ namespace YLErp.Modules.SwapModule
{
interestStart = preSettleDate.Value;
}
if ((interestEnd == exerciseDate && !calcLast)|| !calcLastNew)
if ((interestEnd == exerciseDate && !calcLast))
{
interestEnd = interestEnd.AddDays(-1);
}