Hi,
When posting sale transaction first you need to fix scheduled interest flow before sale transaction date.
If interest flows are incorrect try to update through standard transaction FWUP. Coming to your security valuation it is related to determine your price gain and losses not related to interest.
After executing FWUP if still problem exist please share the screen print of condition and cash flow to analysis the issue.