Invoice vs Payment
Payments from customers are added to your designated accounts. Payments are debits. When a customer purchases from you and makes a payment, you can create a payment voucher for inputting to your accounting system.
Customer invoices are credited sales. Which means, if you make a sale with an customer invoice, the customer owes your company money, which has to be fulfilled by a single or multiple payment vouchers.