Membership renewal not updating contributions correctly
We have resolved this issue and it was related to a deleted Organisation contact still being associated with a membership type.

You might be able to resolve it in the interface by re-saving each membership type, especially where an associated Organisation has been deleted / changed to the same name but a new ID.

I actually made the change in the database so this could be your second option. The 'civicrm_price_field' table stores the Organisation ID in the 'name' column, for some reason this hadn't got updated to the new Organisation ID.