anchor.diff:          </tr>
           <% end %>
         </table>
  +      
  +      <%= render 'admin/shared/table_summary', data: payments %>
   
       <% elsif params[:q] == "campaigns" %>
           <% campaigns = AffiliateCampaign.where(affiliate_id: @affiliate.id).order(created_at: :desc)%>
  
positive.code:     <% end %>
      </table>
      
      <div class="table-summary">
      	<%= number_with_delimiter(purchase_orders.total_entries) %> records
      </div>
  
      <% elsif params[:q] == "payments" %>
      
        <% payments = Payment.where(payable_type: "affiliate", payable_id: @affiliate.id).where("amount < 0.0").order(created_at: :desc).paginate(page: params[:page], per_page: 10) %>
  
        <%= will_paginate payments %>
        <table class="table table-striped table-condensed">
  
negative.code:           <th></th>
        		<th>Status</th>
        	</tr>
        	 <%= render partial: 'admin/store/orders/order', collection: orders %>
        </table>
        
        <%= render 'admin/shared/table_summary', data: orders %>
  
         <%= link_to "New Order", new_admin_store_order_path(affiliate_id: @affiliate.id), class: 'btn btn-default' %>
  
  