Welcome to the Community - thank you for your question!
Does this payment relate to specific invoices? Or just deposits to the customers?
I have sorted out all the invoices that this payment can be allocated to, just two separate companies, 5 invoices from one and 3 from another.
You can do this by selecting 'find match' when clicking on the transaction - this should bring up a list of all open invoices within a specific date range (you can change this if the invoices fall outside of this). You can then tick all invoices that apply to the payment.