Edit sales and purchase invoices to include the receipt and payment

I suspect most of the functionality you are looking for is contained in this idea