foodsoft/app/views/finance/invoices/_form.html.haml

19 lines
596 B
Plaintext
Raw Normal View History

2012-04-20 18:33:47 +02:00
= simple_form_for([:finance, @invoice]) do |f|
2009-01-18 17:42:51 +01:00
= f.hidden_field :delivery_id
= f.hidden_field :order_id
2009-01-18 17:42:51 +01:00
- if @invoice.delivery
2012-04-20 18:33:47 +02:00
%p Diese Rechnung ist mit einer #{link_to("Lieferung", [@invoice.supplier,@invoice.delivery])} verknüpft.
- if @invoice.order
2012-04-20 18:33:47 +02:00
%p Diese Rechnung ist mit einer #{link_to("Bestellung", @invoice.order)} verknüpft.
= f.association :supplier, hint: false
= f.input :number
= f.input :date
= f.input :paid_on
= f.input :amount, as: :string
= f.input :deposit, as: :string
= f.input :deposit_credit, as: :string
= f.input :note
= f.submit