Dear Gil,
We need more detail in order to be able to help you. Can you give information regarding e.g. was the first check a prepayment, payment etc? How was it applied to invoices.Please give us the exact procedures that you followed for each step.
Once we have that information we can provide you with the right solution to your problem.
Thanks!