anchor.diff:  
       <% elsif params[:q] == "payments" %>
       
  -      <% payments = Payment.where(payable_type: "affiliate", payable_id: @affiliate.id).order(created_at: :desc).paginate(page: params[:page], per_page: 10) %>
  +      <% payments = Payment.where(payable_type: "affiliate", payable_id: @affiliate.id)
  +                           .order(created_at: :desc)
  +                           .paginate(page: params[:page], per_page: 20) %>
   
         <%= will_paginate payments %>
         
  
positive.code:         orders = Order.where.not(status: "in cart")
                        .where(affiliate_id: @affiliate.id)
                        .order(submitted: :desc)
                        .paginate(page: params[:page]) 
        %>
    
        <%
  
negative.code: 
      <% elsif params[:q] == "invoices" %>
    
        <% invoices = Invoice.where(affiliate_id: @affiliate.id)
                             .order(post_date: :desc)
                             .paginate(page: params[:page], per_page: params[:per_page] || 20) %>
  
        <div class="pull-right">
          <%= render 'admin/billing/invoices/group_actions' %>
  