<commit_before>-content_for :links do
  %ul.breadcrumps
    %li #{link_list @account_ledger}<span>&gt;</span>
    %li #{link_parent @account_ledger}<span>&gt;</span>

%h1 Nueva transferencia

= simple_form_for @account_ledger, :url => transference_account_ledgers_path, :html => {:class => 'enter'} do |f|

  = bonsai_form_error(f)
  
  = f.input :account_id, :as => :hidden
  
  .input
    %label De cuenta
    = @account_ledger.account
  = f.input :to_id, :collection => Account.org.money.where("id NOT IN(?)", @account_ledger.account_id), :label => 'A cuenta'
  .clear

  = f.input :amount, :label => "Cantidad #{@account_ledger.account.currency_symbol}",
    :input_html => {:size => 12, :type => 'decimal', :class => 'r'}, :wrapper_html => {:class => '_30'}

  .input
    %label Feccha
    = lo Time.zone.now

  - disp = @account_ledger.show_exchange_rate? ? 'block' : 'none'

  = f.input :exchange_rate, :label => "Tipo de cambio de", 
    :input_html => {:size => 12}, :hint => 'Puede ingresar hasta 4 decimales', :wrapper_html => {:style => "display:#{disp}", :id => 'al_exchange_rate'}

  .clear
   
  = f.submit "Transferir"


.rates.bg_white{:style => 'display:none'}
  %h3 Tipos de cambio moneda base "#{currency_name}"
  = render 'currency_rates/active', :currency_rates => CurrencyRate.active

:javascript
  $(function() {

    var accounts = #{Account.org.to_hash(:name, :currency_id).to_json};
    var currencies = #{Currency.to_hash.to_json};<commit_msg>Fixed decimal transference<commit_after>-content_for :links do
  %ul.breadcrumps
    %li #{link_list @account_ledger}<span>&gt;</span>
    %li #{link_parent @account_ledger}<span>&gt;</span>

%h1 Nueva transferencia

= simple_form_for @account_ledger, :url => transference_account_ledgers_path, :html => {:class => 'enter'} do |f|

  = bonsai_form_error(f)
  
  = f.input :account_id, :as => :hidden
  
  .input
    %label De cuenta
    = @account_ledger.account
  = f.input :to_id, :collection => Account.org.money.where("id NOT IN(?)", @account_ledger.account_id), :label => 'A cuenta'
  .clear

  = f.input :amount, :label => "Cantidad #{@account_ledger.account.currency_symbol}",
    :input_html => {:size => 12, :type => 'decimal', :class => 'r'}, :wrapper_html => {:class => '_30'}

  .input
    %label Feccha
    = lo Time.zone.now

  - disp = @account_ledger.show_exchange_rate? ? 'block' : 'none'

  = f.input :exchange_rate, :label => "Tipo de cambio de", 
    :input_html => {:size => 12, :type => 'decimal'}, :hint => 'Puede ingresar hasta 4 decimales', :wrapper_html => {:style => "display:#{disp}", :id => 'al_exchange_rate'}

  .clear
   
  = f.submit "Transferir"


.rates.bg_white{:style => 'display:none'}
  %h3 Tipos de cambio moneda base "#{currency_name}"
  = render 'currency_rates/active', :currency_rates => CurrencyRate.active

:javascript
  $(function() {

    var accounts = #{Account.org.to_hash(:name, :currency_id).to_json};
    var currencies = #{Currency.to_hash.to_json};
{'fraction_non_alphanumeric': 0.17546218487394957, 'fraction_numerical': 0.006050420168067227, 'mean_word_length': 4.314285714285714, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 56, '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': '5039235', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1062, 'n_words': 229}