anchor.diff:        <th>ID</th>
         <th>Date</th>
         <th>Customer</th>
  +      <th></th>
         <th>Item</th>
         <th>Method</th>
         <th>Memo</th>
         <th>Amount</th>
       </tr>
  -    <% payments.order('created_at DESC').each do |pmt| %>
  -    <tr>
  -      <td><%= link_to pmt.id.to_s, admin_billing_payment_path(pmt) %></td>
  -      <td><%= systime pmt.created_at %></td>
  -      <td><%= tick pmt.customer %></td>
  -      <td>
  -      <% if pmt.payable_type == "order" %>
  -          <%= link_to "Order ##{pmt.payable_id}", admin_store_order_path(pmt.payable_id) %>
  -      <% elsif pmt.payable_type == "user_package" %>
  -          <%= link_to "Package: " + UserPackage.find(pmt.payable_id).package.name, admin_billing_user_package_path(pmt.payable_id) %>
  -      <% elsif pmt.payable_type == "user_service" %>
  -          <%= UserService.find(pmt.payable_id).service_type.name %>
  -      <% elsif pmt.payable_type == "shipment" %>
  -          <% shipment = Shipment.find_by(id: pmt.payable_id)%>
  -          <%= link_to "Shipment #{shipment}", admin_store_shipment_path(pmt.payable_id) %>
  -      <% elsif pmt.payable_type == "pbx_cdr" %>
  -          <%= link_to "Phone Call", admin_pbx_cdr_path(0, uuid: pmt.payable_id) %>
  -      <% end %>
  -      </td>
  -      <td><%= pmt.cc_number %></td>
  -      <td><%= pmt.memo %></td>
  -      <td><%= number_to_currency(pmt.amount, negative_format: "(%u%n)") %></td>
  -    </tr>
  -    <% end %>
  +    <%= render partial: 'admin/billing/payments/payment', collection: payments %>
     </table>
     
     
  
positive.code:   <table class="table table-striped table-condensed">
    	<tr>
    		<th>Item ID</th>
        <th>Description</th>
    		<th class="text-center">Qty</th>
        <th class="text-center">Frequency</th>
    		<th class="text-center">Last Shipped</th>
    		<th class="text-center">Next Ship Date</th>
    	</tr>
    	<% items.each do |item| %>
    	<tr>
    		<td><%= link_to item.item_id, admin_store_product_path(item.product_id) %></td>
        <td><%= item.description %></td>
    		<td class="text-center"><%= item.quantity %></td>
        <td class="text-center"><%= pluralize(item.days, "day") %></td>
    		<td class="text-center"><%= item.last_shipped %></td>
    		<td class="text-center"><%= item.next_ship_date %></td>
    	</tr>
    	<% end %>
    </table>
    <%= link_to "new autoship item", new_admin_store_auto_ship_item_path(user_id: params[:id]), class: "btn btn-default btn-sm" %>
  
  <% elsif q == "tickets" %>
  
negative.code: <% if q == "orders" 
    orders = Order.where(user_id: params[:id]).where.not(status: "in cart").order(submitted: :desc).paginate(page: params[:page], per_page: 10) %>
    
    
    <%= link_to new_admin_store_order_path(user_id: params[:id]), class: "btn btn-default btn-sm pull-right" do %>
      <i class="fa fa-plus"></i> New order
    <% end %>
    
    <%= will_paginate orders %>
    <table class="table table-striped table-condensed">
    	<tr>
        <th></th>
    		<th>Order #</th>
        <th>Sales Channel</th>
    		<th>Date</th>
    		<th>Customer</th>
    		<th>Location</th>
    		<th>Amount</th>
        <th></th>
    		<th>Status</th>
    	</tr>
      <%= render partial: 'admin/store/orders/order', collection: orders%>
    </table>
    
    <%= render 'admin/shared/table_summary', data: orders%>
    
    
  <% elsif q == "autoship" 
    items = AutoShipItem.where(user_id: params[:id]) %>
  