Banco de Cheque *
<% if @pedido.cheque.length>0 %>
<%= h @pedido.cheque[0].banco_cheque.nome %>
<%= f.hidden_field :banco_cheque_id, :value => @pedido.cheque[0].banco_cheque.id %>
<% else %>
<%= f.collection_select :banco_cheque_id, BancoCheque.find(:all, :order => "nome"), :id, :nome, :prompt => 'Selecione um Banco de Cheque' %>
<% end %>
<%= f.hidden_field :pedido_id, :value => @pedido.id %>
<%= f.hidden_field :cliente_id, :value => @pedido.cliente.id %>
Banco *
<%= f.collection_select :banco_id, Banco.find(:all, :order => "nome"), :id, :numero_nome_banco, :prompt => 'Selecione um Banco' %>
NĂșmero *
<%= f.text_field :numero, :size => 12, :maxlength => 15 %>
AgĂȘncia *
<%= f.text_field :agencia, :size => 12, :maxlength => 15 %>
Conta Corrente *
<%= f.text_field :conta, :size => 12, :maxlength => 15 %>
Valor *
<%= f.text_field :valor, :size => 15, :maxlength => 14, :onKeyUp => "formataValor(this)" %> reais
Data *
<%= text_field_with_js_mask :cheque, :data, :size => 10, :maxlength => 10, :class => 'mask_date_br' %>
Emitente *
<%= f.text_field :emitente, :size => 34, :maxlength => 100 %>