This error occurs when paying an agent who has two profiles or two different person id in the system.
Example:
NOTE: Take note of the person id and do it again for the other invoice IDs.
After checking the agent profile, user should know what invoice should be changed
How to correct the invoice
How to post the payments
The payment should be posted without any error