GP CSI Belinda Allen looks at how to fix payments applied to the wrong invoice.
Fix Customer Payments Applied to the Wrong Invoice
Install, Upgrade & AdminPayables & Receivables
Archived post from 2011. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.