Adjust total for partially refunded order totals

Closes #6666