If a customer overpays or returns a product, you can issue either a credit or a refund. In either case, you must credit the customer with the correct amount; in the case of a credit,you you can then apply that amount to another invoice. In the case of a return, that amount is deducted from the account you use to pay the refund.
...