<commit_before>- content_for(:title) do
  = "Asiento #{@entry.description}"

- content_for(:breadcrumbs) do
  = breadcrumbs do |breadcrumb|
    - breadcrumb.item current_company.name.titlecase, root_path
    - breadcrumb.item 'Asientos', entries_path
    - breadcrumb.item @entry.description, entry_path(@entry)
    - breadcrumb.item 'Ver', entry_path(@entry), :active => true

- content_for(:controls) do
  = controls do |control|
    - control.item t('scaffold.actions.edit').titlecase, edit_entry_path(@entry), :icon => 'application_edit'
    - control.item t('scaffold.actions.back').titlecase, entries_path, :icon => 'application_view_list'

= semantic_attributes_for(@entry) do |s|
  = s.attributes do
    = s.attribute :exercise, :value => @entry.exercise.label
    = s.attribute :date_on
    = s.attribute :description

    .block
      %h2 Detalles
      %table.table{:style=>'margin:10px;width:98%'}
        %tr
          %th descripcion
          %th cuenta
          %th.last debe
          %th.last haber
          %th.last saldo
        - @entry.details.each do |detail|
          %tr{:class => "#{cycle('odd','even')}"}
            %td= detail.description
            %td= raw detail.account.self_and_ancestors.map(&:name).join(' &raquo; ')
            %td.last{:style => 'text-align:right;'}= number_to_currency(detail.debit)
            %td.last{:style => 'text-align:right;'}= number_to_currency(detail.credit)
            %td.last{:style => 'text-align:right;'}= number_to_currency(detail.balance)
        %tr
          %th{:colspan => 2, :style => 'text-align:left;'} totales
          %th.last{:style => 'text-align:right;'}=number_to_currency(@entry.details.debit)
          %th.last{:style => 'text-align:right;'}=number_to_currency(@entry.details.credit)
          %th.last{:style => 'text-align:right;'}=number_to_currency(@entry.details.balance)


.clear
<commit_msg>show entry, muestra detalle de la cuenta y no todos sus ancestros<commit_after>- content_for(:title) do
  = "Asiento #{@entry.description}"

- content_for(:breadcrumbs) do
  = breadcrumbs do |breadcrumb|
    - breadcrumb.item current_company.name.titlecase, root_path
    - breadcrumb.item 'Asientos', entries_path
    - breadcrumb.item @entry.description, entry_path(@entry)
    - breadcrumb.item 'Ver', entry_path(@entry), :active => true

- content_for(:controls) do
  = controls do |control|
    - control.item t('scaffold.actions.edit').titlecase, edit_entry_path(@entry), :icon => 'application_edit'
    - control.item t('scaffold.actions.back').titlecase, entries_path, :icon => 'application_view_list'

= semantic_attributes_for(@entry) do |s|
  = s.attributes do
    = s.attribute :exercise, :value => @entry.exercise.label
    = s.attribute :date_on
    = s.attribute :description

    .block
      %h2 Detalles
      %table.table{:style=>'margin:10px;width:98%'}
        %tr
          %th descripcion
          %th cuenta
          %th.last debe
          %th.last haber
          %th.last saldo
        - @entry.details.each do |detail|
          %tr{:class => "#{cycle('odd','even')}"}
            %td= detail.description
            %td= raw detail.account.name
            %td.last{:style => 'text-align:right;'}= number_to_currency(detail.debit)
            %td.last{:style => 'text-align:right;'}= number_to_currency(detail.credit)
            %td.last{:style => 'text-align:right;'}= number_to_currency(detail.balance)
        %tr
          %th{:colspan => 2, :style => 'text-align:left;'} totales
          %th.last{:style => 'text-align:right;'}=number_to_currency(@entry.details.debit)
          %th.last{:style => 'text-align:right;'}=number_to_currency(@entry.details.credit)
          %th.last{:style => 'text-align:right;'}=number_to_currency(@entry.details.balance)


.clear

{'fraction_non_alphanumeric': 0.15735371639430681, 'fraction_numerical': 0.0031628887717448603, 'mean_word_length': 3.1980088495575223, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, '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': '1762196', 'n_tokens_mistral': 1274, 'n_tokens_neox': 1258, 'n_words': 210}