%-# 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+=1 %> | <% unless @salary == 0 %><%= link_to "#{t('salary_account')}" , :action => 'salary_department' , :start => @start_date,:end => @end_date%> | <% else %><%= t('salary_account') %> | <% end %><%= @salary[:total_salary]%> | ||
<%= 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%> | ||
<%= 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 %> | |
<%=i+index+1%> | <%= link_to t.name,:controller => "finance",:action => "income_details",:start => @start_date,:end => @end_date,:id => t.id %> | <%= expense %> | <%= income %> | <%income_total +=income %> <%expenses_total +=expense %>||
<%= t('grand_total') %> | <% if @grand_total >= 0 %><%= sprintf("%.2f",@grand_total)%> | <% else %><%= sprintf("%.2f",@grand_total * -1) %> | <% end %> |