Update order totals_get() to use a 'sum' key (not 'amount')