fix: #EQD-6812 国联民生-TRS簿记页面增加续做按钮(自动新建一个除日期外要素相同的合约)-交易费用后付字段未填充

This commit is contained in:
马冰冰
2026-07-28 16:48:50 +08:00
parent a575de7bbe
commit d836d192fe
3 changed files with 20 additions and 12 deletions
+1 -3
View File
@@ -465,9 +465,7 @@ namespace YLErp.Modules.AppModule
.ToHashSet();
var nextIndex = adminDb.DictionaryItems
.Where(item => item.DictId == marginTemplateDictionary.Id)
.Select(item => item.IndexNum)
.DefaultIfEmpty(-1)
.Max();
.Max(item => (int?)item.IndexNum) ?? -1;
foreach (var templateName in YLErp.Modules.SwapModule.SwapMarginTemplateConfigService.InitialTemplateNames)
{
if (existingNames.Contains(templateName))