How to link a payment or collection to an invoice