2009-01-08 16:33:27 +01:00
|
|
|
<h1>Editing invoice</h1>
|
|
|
|
|
2009-01-10 19:36:58 +01:00
|
|
|
<% form_for([:finance, @invoice]) do |f| %>
|
2009-01-08 16:33:27 +01:00
|
|
|
<%= f.error_messages %>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label :supplier_id %><br />
|
|
|
|
<%= f.select :supplier_id, Supplier.all.collect { |s| [s.name, s.id] } %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<%= f.label :number %><br />
|
|
|
|
<%= f.text_field :number %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<%= f.label :date %><br />
|
|
|
|
<%= f.date_select :date %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<%= f.label :paid_on %><br />
|
|
|
|
<%= f.date_select :paid_on, :include_blank => true %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<%= f.label :amount %><br />
|
|
|
|
<%= f.text_field :amount %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<%= f.label :note %><br />
|
|
|
|
<%= f.text_area :note %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<%= f.submit "Update" %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
2009-01-10 19:36:58 +01:00
|
|
|
<%= link_to 'Show', [:finance, @invoice] %> |
|
|
|
|
<%= link_to 'Back', finance_invoices_path %>
|