%-# 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. -%>
<%= 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? %>
<%= t('sl_no') %> |
<%= t('particulars') %> |
<%= t('student_category') %> |
<%= t('student_name') %> |
<%= t('amount') %>( <%=currency %> ) |
<%= t('created_date') %> |
<% @particulars.each_with_index do |fees,i| %>
">
<%= 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 %>
<% end %>
<% unless @discounts.blank? %>
<%= t('name') %> |
<%= t('student_category') %> |
<%= t('student_name') %> |
<%= t('discount') %>(%) |
<% @discounts.each do |f| %>
<%= f.name %> |
<% if f.type == "StudentCategoryFeeCollectionDiscount" %>
<%= f.category_name %> |
|
<% elsif f.type == "StudentFeeCollectionDiscount" %>
|
<%= f.student_name %> |
<% elsif f.type == "BatchFeeCollectionDiscount" %>
|
|
<% end %>
<%= f.discount %> |
<% end %>
<% end %>