Complex sentence: After processing the payment, the salesperson would then generate in the one document an invoice, receipt and the payment record, which is the printed record of that transaction, which would be handed to the customer.
Split into simpler sentences: After processing the payment, the salesperson would then generate in the one document an invoice and receipt. These are the printed record of the transaction, which would be handed to the customer.