Please use the “store credit” payment type to get the refund and pay the AR by “store credit”.