Fix totals calculation in sales register