diff --git a/YLErpDAL/Modules/SwapModule/SwapTradeService.cs b/YLErpDAL/Modules/SwapModule/SwapTradeService.cs index 962cec7a..62250b7c 100644 --- a/YLErpDAL/Modules/SwapModule/SwapTradeService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapTradeService.cs @@ -1382,6 +1382,11 @@ namespace YLErp.Modules.SwapModule position.interest_rest_days = swap.interest_rest_days; position.interest_rule = swap.interest_rule; position.InitYtm = swap.InitYtm; + if (swap.InitYtm != null && swap.InitYtm > 0) + { + td.InitYtm = swap.InitYtm; + } + if (position.id == 0) { DbContext.swap_position.Add(position);