Allocate foreign currency payments to other foreign currency invoices

Feature requested

Allocate foreign currency payments to other foreign currency invoices

Typical use case

My business deals with multiple currencies (GBP, USD and MAD). Currently if we pay for a MAD invoice using our USD account there is no direct way to link the transaction to the invoice without pivoting through a GBP holding account. Doing the pivot through a holding account breaks the link between the original bank transaction and the payment.

I would like a direct way to link a USD bank transaction to a payment of a MAD invoice, or more generally to pay a foreign currency invoice from a different foreign currency account.