% title "Rechnungen" %>
Nummer | Lieferantin | Datum | Bezahlt am | Betrag | Lieferung | Bestellung | Note | ||
---|---|---|---|---|---|---|---|---|---|
<%= link_to h(invoice.number), finance_invoice_path(invoice)%> | <%=h invoice.supplier.name %> | <%= format_date invoice.date %> | <%= format_date invoice.paid_on %> | <%= number_to_currency invoice.amount %> | <%= link_to "Lieferung", [invoice.supplier,invoice.delivery] if invoice.delivery %> | <%= link_to format_date(invoice.order.ends), :controller => 'balancing', :action => 'new', :id => invoice.order if invoice.order %> | <%=h truncate(invoice.note) %> | <%= link_to icon(:edit), edit_finance_invoice_path(invoice) %> | <%= link_to icon(:delete), finance_invoice_path(invoice), :confirm => 'Are you sure?', :method => :delete %> |