<%= form_for(PrePurchase.new, remote: true) do |f| %>
  
  <%= f.hidden_field :supplier_id  %>
  <%= f.hidden_field :pointsale_id %>   
  <%= f.hidden_field :warehouse_id %>    
  <%= f.hidden_field :product_id %>
  <%= f.hidden_field :price_base %>    
  <%= f.hidden_field :quantity %> 
  <%= f.hidden_field :amount %>     
  <%= f.hidden_field :tax %>  
  <%= f.hidden_field :exchange %>   
  <%= f.hidden_field :total %>   
  <%= f.submit  'save', {:class=>"hidden"}%>
<% end %>
