Field help (IPTCDEFAC) 

Select Order or Invoice to post the prepayment accordingly.

The open item currency (order or invoice) must be the same as the payment currency, but it can be different from the bank currency.