anchor.diff:      <span class="fa arrow"></span></a>
     <ul class="nav nav-second-level">
       <li><%= link_to "Items", admin_inventory_inventory_items_path %></li>
  -    <li><%= link_to "Transactions", admin_inventory_inventory_transactions_path %></li>
  +    <% if current_user.has_permission?('InventoryTransaction', 'index')%>
  +      <li><%= link_to "Transactions", admin_inventory_inventory_transactions_path %></li>
  +    <% end %>
  +    <% if current_user.has_permission?('PurchaseOrder', 'index')%>
       <li>
         <%= link_to admin_inventory_purchase_orders_path(status: :released) do %>
         Purchase Orders
  
positive.code: <% 
  	new_orders = StoreCache.new_orders_count
  	new_shipments = StoreCache.pending_shipments_count
    new_pos = StoreCache.new_purchase_orders_count
    max = [new_orders, new_shipments].max
    
  %>
  
  <li class="<%= 'active' if request.original_url.include? 'admin/store' %>">
  
negative.code:       <% end %>
        <% end %>
      </li>
      <% end %>
      <li><%= link_to "Reports", admin_inventory_reports_path %></li>
      <li><%= link_to "Suppliers", admin_system_affiliates_path(c: :suppliers) %></li>
      <li><%= link_to "Warehouse setup", admin_inventory_inventory_locations_path %></li>
    </ul>
  </li>
  <% end %>
  