<commit_before><%-# 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. -%>



<div id="page-yield">

  <div class="hor_line"></div>
  <h2><%= t('finance_income_report') %></h2>
  <div class="hor_line"></div>


  <div class="extender"> </div>
  <div class="report">
    <div id ="main_info">
      <h4> <%= "#{t('from')} ( #{@start_date})#{t('to')} ( #{@end_date})" %></h4>
    </div>
    <div id="pdf-info">
      <table id="pdf-table" width="100%" cellspacing="0">
        <tr class="table-header"><td class="col-pdf"><%= t('sl_no') %></td><td class="col-pdf"> <%= t('name') %> </td><td class="col-pdf"> <%= t('description') %> </td><td class="col-pdf"> <%= t('receipt_no') %> </td><td class="col-pdf"><%= "#{t('amount')}( #{currency})" %></td><td class="col-pdf"> <%= t('transaction_date') %></td></tr>
        <% index = 0 %>
        <% total = 0 %>
        <% i = 0 %>
        <% c= 'even' %>

        <% @incomes.each do |d| %>
          <tr class="<%= cycle(c,(["odd","even"]-[c]).first) %>">
            <td class="col-pdf"><%= index+=1 %></td>
            <td class="col-pdf"><%= d.title %></td>
            <td class="col-pdf"><%= d.description %></td>
            <td class="col-pdf"><%= d.receipt_no %></td>
            <td class="col-pdf"><%= d.amount %></td>
            <td class="col-pdf"><%= d.transaction_date.strftime("%d-%m-%y") unless d.transaction_date.nil?%></td>
          </tr>
        <% total += d.amount %>
        <% end %>

        <tr class="<%= cycle(c,(["odd","even"]-[c]).first) %>">
            <td class="col-pdf"></td>
            <td class="col-pdf" colspan="2"><%= t('grand_total') %></td>
            <td class="col-pdf" colspan="2"><%= total %></td>
          </tr>

      </table>
    </div>
<commit_msg>bug fixed => style issue in income list pdf , fixes #1245<commit_after><%-# 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. -%>



<div id="page-yield">

  <div class="hor_line"></div>
  <h2><%= t('finance_income_report') %></h2>
  <div class="hor_line"></div>


  <div class="extender"> </div>
  <div class="report">
    <div id ="main_info">
      <h4> <%= "#{t('from')} ( #{@start_date})#{t('to')} ( #{@end_date})" %></h4>
    </div>
    <div id="pdf-info">
      <table id="pdf-table" width="100%" cellspacing="0">
        <tr class="table-header"><td class="col-pdf"><%= t('sl_no') %></td><td class="col-pdf"> <%= t('name') %> </td><td class="col-pdf"> <%= t('description') %> </td><td class="col-pdf"> <%= t('receipt_no') %> </td><td class="col-pdf"><%= "#{t('amount')}( #{currency})" %></td><td class="col-pdf"> <%= t('transaction_date') %></td></tr>
        <% index = 0 %>
        <% total = 0 %>
        <% i = 0 %>
        <% c= 'even' %>

        <% @incomes.each do |d| %>
          <tr class="<%= cycle(c,(["odd","even"]-[c]).first) %>">
            <td class="col-pdf"><%= index+=1 %></td>
            <td class="col-pdf"><%= d.title %></td>
            <td class="col-pdf"><%= d.description %></td>
            <td class="col-pdf"><%= d.receipt_no %></td>
            <td class="col-pdf"><%= d.amount %></td>
            <td class="col-pdf"><%= d.transaction_date.strftime("%d-%m-%y") unless d.transaction_date.nil?%></td>
          </tr>
        <% total += d.amount %>
        <% end %>

        <tr class="<%= cycle(c,(["odd","even"]-[c]).first) %>">
            <td class="col-pdf"></td>
            <td class="col-pdf" colspan="3"><%= t('grand_total') %></td>
            <td class="col-pdf" colspan="2"><%= total %></td>
          </tr>

      </table>
    </div>

{'fraction_non_alphanumeric': 0.2312162723121627, 'fraction_numerical': 0.009962640099626401, 'mean_word_length': 3.049579831932773, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 164, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7470577', 'n_tokens_mistral': 1737, 'n_tokens_neox': 1585, 'n_words': 421}