<%-# Fedena #Copyright 2010 Foradian Technologies Private Limited # #This product includes software developed at #Project Fedena - http://www.projectfedena.org/ # #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #Unless required by applicable law or agreed to in writing, #software distributed under the License is distributed on an #"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY #KIND, either express or implied. See the License for the #specific language governing permissions and limitations #under the License. -%>
<%= image_tag("/images/show_finance.png") %>

<%= t('fees_text') %>

<%= t('collection_details') %>

<%= link_to_function image_tag("/images/buttons/back.png",:border => 0), "history.back()" %>
<%= t('fee_collection_name') %>
:<%= @fee_collection.name %>
<%= t('fee_category_name') %>
:<%= @fee_collection.fee_category.name %>
<%= t('start_date') %>
:<%= @fee_collection.start_date %>
<%= t('end_date') %>
:<%= @fee_collection.end_date %>
<%= t('due_date') %>
:<%= @fee_collection.due_date %>
<% unless @particulars.empty? %>
<% @particulars.each_with_index do |fees,i| %> "> <% end %>
<%= t('sl_no') %> <%= t('particulars') %> <%= t('student_category') %> <%= t('student_name') %> <%= t('amount') %>( <%=currency %> ) <%= t('created_date') %>
<%= i+1 %> <%= fees.name %> <%unless fees.student_category_id.nil?%> <%= StudentCategory.find(fees.student_category_id).name%> <% else %> - <% end %> <%unless fees.admission_no.nil?%> <% student = Student.find_by_admission_no(fees.admission_no)%> <%= student.nil? ? "#{t('n_a')}" : "#{student.first_name} (#{student.admission_no})" %> <% else %> - <% end %> <%= fees.amount%> <%= fees.created_at.strftime("%m-%d-%Y") %>
<% end %> <% unless @discounts.blank? %>
<% @discounts.each do |f| %> <% if f.type == "StudentCategoryFeeCollectionDiscount" %> <% elsif f.type == "StudentFeeCollectionDiscount" %> <% elsif f.type == "BatchFeeCollectionDiscount" %> <% end %> <% end %>
<%= t('name') %> <%= t('student_category') %> <%= t('student_name') %> <%= t('discount') %>(%)
<%= f.name %><%= f.category_name %> <%= f.student_name %> <%= f.discount %>
<% end %>