Copy from Payment/Receipts to Purchase/Sales Invoices

A similar concept to your request is in ideas. See this thread:

and proposed solution: