You have done everything correctly. The only thing you have missed is to allocate the Bank Payment with the former Customer Payment.
The credit note took over the allocations from the Customer Payment. And now you should finally allocate the Bank Payment with this Customer Payment.
This tricky thing arise when you have got payment before the credit note. But after this final operation everything is ok.
/Joe
