%-# 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('sl_no') %> |
<%= t('particulars') %> |
<%= t('expenses') %>(<%= currency %>) |
<%= t('income') %>(<%= currency %>) |
<% index = 0 %>
<%income_total = 0%>
<%expenses_total = 0%>
<% unless @hr.nil? %>
<%= index+=1 %> |
<% unless @salary == 0 %>
<%= link_to "#{t('salary_account')}" , :action => 'salary_department' , :start => @start_date,:end => @end_date%> |
<% else %>
<%= t('salary_account') %> |
<% end %>
<%= @salary%> |
|
<% end %>
<%= index+=1 %> |
<% unless @donations_total == 0 %>
<%= link_to "#{t('donations')}" , :action => 'donations_report',:start => @start_date,:end => @end_date%> |
<% else %>
<%= t('donations') %> |
<% end %>
|
<%=@donations_total%> |
<%= index+=1 %> |
<% unless @transactions_fees == 0 %>
<%= link_to "#{t('fees_account')}" , :action => 'fees_report' , :start => @start_date,:end => @end_date%> |
<% else %>
<%= t('fees_account') %> |
<% end %>
|
<%=@transactions_fees%> |
<% FedenaPlugin::FINANCE_CATEGORY.each do |category| %>
<%= index+=1 %> |
<%= link_to "#{t(category[:category_name]+'_account')}" , category[:destination].merge(:start => @start_date,:end => @end_date)%> |
<% if @category_transaction_totals["#{category[:category_name]}"][:category_type] == "income"%>
|
<%=@category_transaction_totals["#{category[:category_name]}"][:amount]%> |
<% else %>
<%=@category_transaction_totals["#{category[:category_name]}"][:amount]%> |
|
<% end %>
<% end %>
<% @other_transaction_categories.each_with_index do |t,i| %>
<% income = t.total_income(@start_date,@end_date) %>
<% expense = t.total_expense(@start_date,@end_date) %>
">
<%=i+index+1%> |
<%= t.name %> |
<%= expense %> |
<%= income %> |
<%income_total +=income%>
<%expenses_total +=expense%>
<%end%>
|
<%= t('grand_total') %> |
<% if @grand_total >= 0 %>
|
<%= sprintf("%.2f",@grand_total)%> |
<% else %>
<%= sprintf("%.2f",@grand_total * -1)%> |
|
<% end %>
<%#= will_paginate@other_transactions,:params => {:start_date => @start_date , :end_date => @end_date}%>
<%= t('sl_no') %> |
<%= t('particulars') %> |
<%= t('expenses') %>(<%= currency %>) |
<%= t('income') %>(<%= currency %>) |
<% index = 0 %>
<%income_total = 0%>
<%expenses_total = 0%>
<% unless @hr.nil? %>
<%= index+=1 %> |
<% unless @salary2 == 0 %>
<%= link_to "#{t('salary_account')}" , :action => 'salary_department' , :start => @start_date2,:end => @end_date2%> |
<% else %>
<%= t('salary_account') %> |
<% end %>
<%= @salary2%> |
|
<% end %>
<%= index+=1 %> |
<% unless @donations_total2 == 0 %>
<%= link_to "#{t('donations')}" , :action => 'donations_report',:start => @start_date2,:end => @end_date2%> |
<% else %>
<%= t('donations') %> |
<% end %>
|
<%=@donations_total2%> |
<%= index+=1 %> |
<% unless @transactions_fees2 == 0 %>
<%= link_to "#{t('fees_account')}" , :action => 'fees_report' , :start => @start_date2,:end => @end_date2%> |
<% else %>
<%= t('fees_account') %> |
<% end %>
|
<%=@transactions_fees2%> |
<% FedenaPlugin::FINANCE_CATEGORY.each do |category| %>
<%= index+=1 %> |
<%= link_to "#{t(category[:category_name]+'_account')}" , category[:destination].merge(:start => @start_date2,:end => @end_date2)%> |
<% if @category_transaction_totals["#{category[:category_name]}"][:category_type] == "income"%>
|
<%=@category_transaction_totals["#{category[:category_name]}"][:amount]%> |
<% else %>
<%=@category_transaction_totals["#{category[:category_name]}"][:amount]%> |
|
<% end %>
<% end %>
<% @other_transaction_categories2.each_with_index do |t,i| %>
<% income = t.total_income(@start_date2,@end_date2) %>
<% expense = t.total_expense(@start_date2,@end_date2) %>
">
<%=i+index+1%> |
<%= t.name %> |
<%= expense %> |
<%= income %> |
<%income_total +=income%>
<%expenses_total +=expense%>
<%end%>
|
<%= t('grand_total') %> |
<% if @grand_total2 >= 0 %>
|
<%= sprintf("%.2f",@grand_total2)%> |
<% else %>
<%= sprintf("%.2f",@grand_total2 * -1)%> |
|
<% end %>
<%#= will_paginate@other_transactions2,:params => {:start_date => @start_date2 , :end_date => @end_date2}%>