Pay multiple customer invoices with one deposit

SOLVED

I ship orders out COD via Canada Post and then receive one direct deposit to the bank account from Canada Post for the lump sum of all the COD orders for that period. The payments in the lump sum deposit pay for multiple invoices for multiple customers. How would I go about inputting this properly and paying the invoices in Sage 50 Quantum so that everything reconciles correctly?