Chip Inventory

New Chip Transaction: <%= link_if_staff_or_admin 'Vendor Purchase', :controller=> 'chip_transactions', :action => 'buy' %> | <%= link_if_staff_or_admin 'Inter-group Purchase', :controller=> 'chip_transactions', :action => 'intergroup_buy' %> | <%= link_if_staff_or_admin 'Borrow', :controller=> 'chip_transactions', :action => 'borrow' %> | <%= link_if_staff_or_admin 'Return', :controller=> 'chip_transactions', :action => 'return_borrowed' %> | <%= link_if_staff_or_admin 'Custom', :controller=> 'chip_transactions', :action => 'new' %> <% if(@lab_groups.size > 0) %> <% for lab_group in @lab_groups %>

<%=h lab_group.name %>: <% for chip_type in @chip_types %> <% if ChipTransaction.has_transactions?(lab_group.id,chip_type.id) %> <%= link_to(h=chip_type.name, { :controller => "chip_transactions", :action => "list_subset", :lab_group_id => lab_group.id, :chip_type_id => chip_type.id}) %> <% end %> <% end %>

<% end %> <% else %> <% if current_user.staff_or_admin? %>

There are currently no chip inventories

<% else %>

You belong to no lab groups, and therefore cannot see any array inventories
Please contact your administrator at <%=h SiteConfig.administrator_email %> if you need
to be added to any lab groups.

<% end %> <% end %>