Adding support for linking payments to an invoice