Receipt amount exceeds amounts allocated to invoices

Hello,
When I try to deposit an advance payment from a foreign currency debtor into my base currency bank I am prompted with an error message. I am newbie with this kind of softwares, my best friend helps me to make some transactions. Now we both are stuck on this error. Can this error be solved ? What we did wrong ?
Kind regards !

Receipt amount exceeds amounts allocated to invoices
Overpayments in foreign currencies are not allowed. You must issue a debit note (and a credit note if desired) for this customer
