How to partially refund an order with damaged product in the return?

We have a bookstore and many of our returns are given partial credit as the return is damaged. I know how to handle the return and partial refund, my question is how do I clear the balance due on the account? I can take care of this in QuickBooks but need to clear the balance due in Shopify.