If the customer has overpaid the amount for an invoice you can refund the overpaid amount to the customer. To do that follow the below process
Business Portal > Sales > Sales Order New > Invoice Selection > Refund Payment
Go to the invoice whose details are to be changed and open the details of invoice
click on “Refund Amount” button
Enter the amount and mode of payment mode ro record refund details
Your payments will be updated