<%-# 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_category.name %>
<%= t('start_date') %>
:<%= @fee_collection.start_date %>
<%= t('end_date') %>
:<%= @fee_collection.end_date %>
<%= t('due_date') %>
:<%= @fee_collection.due_date %>
<% total_fees =0 %> <% unless @fee_particulars.nil? %> <% i = 0 %> <% @fee_particulars.each do |fee| %> "> <% i += 1 %> <% total_fees += fee.amount %> <% end %> " cellpadding="1" cellspacing="1"> <% unless @total_discount == 0 %> " cellpadding="1" cellspacing="1"> <% @batch_discounts.each do |d| %> "> <% i += 1 %> <% end %> <% @student_discounts.each do |d| %> "> <% i += 1 %> <% end %> <% @category_discounts.each do |d| %> "> <% i += 1 %> <% end %> " cellpadding="1" cellspacing="1"> <% net_fee = (total_fees - ((total_fees*@total_discount)/100)) %> " cellpadding="1" cellspacing="1"> <% end %>
Sl no. <%= t('particulars') %> <%= t('amount') %> (<%= currency %> )
<%= i+1 %> <%= shorten_string(fee.name,20) %> <%= fee.amount%>
<%= t('total_fees') %> <%= total_fees%>
<%= t('discount') %>
<%= i+1 %> <%= shorten_string(d.name,20) %> <%= d.discount%> %
<%= i+1 %> <%= shorten_string(d.name,20) %> <%= d.discount%> %
<%= i+1 %> <%= shorten_string(d.name,20) %> <%= d.discount%> %
<%= t('total_discount') %> <%= "#{@total_discount} %" %>
<%= t('fees_to_be_paid') %> <%= net_fee %>
<% end %> <%= link_to t('pdf_report'),{:action => "pdf_fee_structure",:id => @student.id,:id2=>@fee_collection.id},:class => 'user_button'%>