2009-01-18 17:42:51 +01:00
|
|
|
- form_for([:finance, @invoice]) do |f|
|
|
|
|
= f.error_messages
|
|
|
|
= f.hidden_field :delivery_id
|
2009-01-29 21:28:22 +01:00
|
|
|
= f.hidden_field :order_id
|
2009-01-18 17:42:51 +01:00
|
|
|
|
|
|
|
- if @invoice.delivery
|
|
|
|
%p= "Diese Rechnung ist mit einer #{link_to "Lieferung", [@invoice.supplier,@invoice.delivery]} verknüpft."
|
2009-01-29 21:28:22 +01:00
|
|
|
- if @invoice.order
|
|
|
|
%p= "Diese Rechnung ist mit einer #{link_to "Bestellung", @invoice.order} verknüpft."
|
2009-01-18 17:42:51 +01:00
|
|
|
%p
|
2009-03-22 13:56:54 +01:00
|
|
|
Lieferantin
|
2009-01-18 17:42:51 +01:00
|
|
|
%br/
|
|
|
|
= f.select :supplier_id, Supplier.all.collect { |s| [s.name, s.id] }
|
|
|
|
%p
|
2009-02-11 18:09:04 +01:00
|
|
|
Rechnungsnummer
|
2009-01-18 17:42:51 +01:00
|
|
|
%br/
|
|
|
|
= f.text_field :number
|
|
|
|
%p
|
2009-02-11 18:09:04 +01:00
|
|
|
Rechnungsdatum
|
2009-01-18 17:42:51 +01:00
|
|
|
%br/
|
|
|
|
= f.date_select :date
|
|
|
|
%p
|
2009-02-11 18:09:04 +01:00
|
|
|
Bezahlt am
|
2009-01-18 17:42:51 +01:00
|
|
|
%br/
|
|
|
|
= f.date_select :paid_on, :include_blank => true
|
|
|
|
%p
|
2009-02-11 18:09:04 +01:00
|
|
|
Rechnungsbetrag
|
2009-01-18 17:42:51 +01:00
|
|
|
%br/
|
|
|
|
= f.text_field :amount
|
2009-01-29 21:28:22 +01:00
|
|
|
%p
|
2009-02-11 18:09:04 +01:00
|
|
|
Pfand berechnet
|
2009-01-29 21:28:22 +01:00
|
|
|
%br/
|
|
|
|
= f.text_field :deposit
|
|
|
|
%p
|
2009-02-11 18:09:04 +01:00
|
|
|
Pfand gutgeschrieben
|
2009-01-29 21:28:22 +01:00
|
|
|
%br/
|
|
|
|
= f.text_field :deposit_credit
|
2009-01-18 17:42:51 +01:00
|
|
|
%p
|
2009-02-11 18:09:04 +01:00
|
|
|
Notiz
|
2009-01-18 17:42:51 +01:00
|
|
|
%br/
|
2009-02-11 18:09:04 +01:00
|
|
|
= f.text_area :note, :size => "28x8"
|
2009-01-18 17:42:51 +01:00
|
|
|
%p
|
|
|
|
= f.submit "Speichern"
|