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

21 lines
701 B
Plaintext

= simple_form_for([:finance, @invoice]) do |f|
= f.hidden_field :delivery_id
= f.hidden_field :order_id
- if @invoice.delivery
%p Diese Rechnung ist mit einer #{link_to("Lieferung", [@invoice.supplier,@invoice.delivery])} verknüpft.
- if @invoice.order
%p Diese Rechnung ist mit einer #{link_to("Bestellung", @invoice.order)} verknüpft.
= f.association :supplier, hint: false
= f.input :number
= f.input :date, as: :date_picker
= f.input :paid_on, as: :date_picker
= f.input :amount, as: :string
= f.input :deposit, as: :string
= f.input :deposit_credit, as: :string
= f.input :note
.form-actions
= f.submit class: 'btn'
= link_to "oder abbrechen", :back