The double-entry for each prepayment is:
The double-entry for each accrual is as follows:
Each of the previous period-end's entries will have to be reversed as well. This is simply a matter of reversing the above entries.