<commit_before><h1>Account <%= @account.title %></h1>

<style>
.account, .account td {
  border: solid 1px;
}

.listing tr td {
  background-color: white;
  border-left: 0px none;
  border-right: 0px none;
}

.listing tr {
  border-left: 0px none;
  border-right: 0px none;
}

</style>

<table class="listing">
  <tr>
    <%= sort_header('value_date', 'Datum') %>
    <th>Text</th>
    <th>Belastung</th>
    <th>Gutschrift</th>
    <th>Saldo</th>
    <th>Valuta</th>
  </tr>
  <% total_debit = 0; total_credit = 0 %>
  <% for booking in @account.bookings %>
  <% @booking = booking %>
  <% total_debit += booking.amount if booking.debit_account == @account %>
  <% total_credit += booking.amount if booking.credit_account == @account %>
  <tr style="border-top: 2px">
    <td style="border: 0 none; border-top: 2px solid"><%= in_place_editor_field :booking, :in_place_value_date %></td>
    <td style="border: 0 none; border-top: 2px solid">
      <%= in_place_editor_field :booking, :title %>
      <%= '<hr style="height: 0px; margin: 0"/>' unless booking.comments.empty? %>
      <i><%= in_place_editor_field :booking, :comments %></i>
    </td>
    <td style="border: 0 none; border-top: 2px solid; text-align: right"><%= in_place_editor_field :booking, :in_place_amount if booking.debit_account == @account %></td>
    <td style="border: 0 none; border-top: 2px solid; text-align: right"><%= in_place_editor_field :booking, :in_place_amount if booking.credit_account == @account %></td>
    <td style="border: 0 none; border-top: 2px solid; text-align: right"><%= currency_fmt(total_credit - total_debit) %></td>
    <td style="border: 0 none; border-top: 2px solid">
      <%= link_to h(booking.in_place_value_date), :controller => :bookings, :action => :show, :id => booking %><commit_msg>add edit link to accounts show<commit_after><h1>Account <%= @account.title %></h1>

<style>
.account, .account td {
  border: solid 1px;
}

.listing tr td {
  background-color: white;
  border-left: 0px none;
  border-right: 0px none;
}

.listing tr {
  border-left: 0px none;
  border-right: 0px none;
}

</style>

<table class="listing">
  <tr>
    <%= sort_header('value_date', 'Datum') %>
    <th>Text</th>
    <th>Belastung</th>
    <th>Gutschrift</th>
    <th>Saldo</th>
    <th>Valuta</th>
  </tr>
  <% total_debit = 0; total_credit = 0 %>
  <% for booking in @account.bookings %>
  <% @booking = booking %>
  <% total_debit += booking.amount if booking.debit_account == @account %>
  <% total_credit += booking.amount if booking.credit_account == @account %>
  <tr style="border-top: 2px">
    <td style="border: 0 none; border-top: 2px solid"><%= in_place_editor_field :booking, :in_place_value_date %></td>
    <td style="border: 0 none; border-top: 2px solid">
      <%= in_place_editor_field :booking, :title %>
      <%= '<hr style="height: 0px; margin: 0"/>' unless booking.comments.empty? %>
      <i><%= in_place_editor_field :booking, :comments %></i>
    </td>
    <td style="border: 0 none; border-top: 2px solid; text-align: right"><%= in_place_editor_field :booking, :in_place_amount if booking.debit_account == @account %></td>
    <td style="border: 0 none; border-top: 2px solid; text-align: right"><%= in_place_editor_field :booking, :in_place_amount if booking.credit_account == @account %></td>
    <td style="border: 0 none; border-top: 2px solid; text-align: right"><%= currency_fmt(total_credit - total_debit) %></td>
    <td style="border: 0 none; border-top: 2px solid">
      <%= link_to h(booking.in_place_value_date), :controller => :bookings, :action => :show, :id => booking %>
      <%= link_to 'Edit', { :controller => :bookings, :action => :edit, :id => booking }, :method => :post %>
{'fraction_non_alphanumeric': 0.18113410373555497, 'fraction_numerical': 0.012899758129535071, 'mean_word_length': 4.112637362637362, 'pattern_counts': {'":': 0, '<': 98, '<?xml version=': 0, '>': 108, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4912114', 'n_tokens_mistral': 1432, 'n_tokens_neox': 1322, 'n_words': 329}