What does it mean when a payment amount is highlighted yellow?

When a payment is highlighted near the occasion its applied to, it means that the payment was applied to a pledge on a different persons account.
To change it, uncheck the box near the occasion and check off the proper occasion and click OK.