<% title "Invoices" %> <% for invoice in @invoices %> <% end %>
Supplier Number Date Paid on Amount Delivery Note
<%=h invoice.supplier.name %> <%=h invoice.number %> <%= invoice.date %> <%= invoice.paid_on %> <%= invoice.amount %> <%=h invoice.delivery_id %> <%=h truncate(invoice.note) %> <%= link_to 'Show', invoice %> <%= link_to 'Edit', edit_invoice_path(invoice) %> <%= link_to 'Destroy', invoice, :confirm => 'Are you sure?', :method => :delete %>

<%= link_to 'New invoice', new_invoice_path %>