2009-02-11 18:09:04 +01:00
|
|
|
- form_for stock_article do |form|
|
|
|
|
= form.error_messages
|
2009-02-12 18:32:20 +01:00
|
|
|
%p
|
|
|
|
Lieferant
|
|
|
|
%br/
|
|
|
|
= form.select :supplier_id, Supplier.without_deleted(:order => 'name').collect{ |s| [s.name, s.id] }
|
2009-02-11 18:09:04 +01:00
|
|
|
%p
|
|
|
|
Name
|
|
|
|
%br/
|
|
|
|
= form.text_field :name
|
|
|
|
%p
|
|
|
|
Einheit
|
|
|
|
%br/
|
|
|
|
= form.text_field :unit
|
|
|
|
%p
|
|
|
|
Notiz
|
|
|
|
%br/
|
|
|
|
= form.text_field :note
|
|
|
|
- if stock_article.new_record?
|
|
|
|
%p
|
|
|
|
Nettopreis
|
|
|
|
%br/
|
|
|
|
= form.text_field :price
|
|
|
|
%p
|
|
|
|
MwSt
|
|
|
|
%br/
|
|
|
|
= form.text_field :tax, :value => (stock_article.tax || 7.0)
|
|
|
|
%p
|
|
|
|
Pfand
|
|
|
|
%br/
|
|
|
|
= form.text_field :deposit
|
|
|
|
- else
|
2009-02-12 18:32:20 +01:00
|
|
|
%p
|
2009-02-11 18:09:04 +01:00
|
|
|
Preis:
|
|
|
|
%br/
|
|
|
|
Um Chaos zu vermeiden können bis auf weiteres die Preise von angelegten
|
|
|
|
Lagerartikeln nicht mehr verändert werden.
|
|
|
|
%p
|
|
|
|
Kategorie:
|
|
|
|
= form.select :article_category_id, ArticleCategory.all(:order => 'name').collect { |c| [c.name, c.id] }
|
|
|
|
%p
|
|
|
|
= submit_tag "Lagerartikel speichern"
|
|
|
|
|
|
|
|
|
= link_to "Abbrechen", stock_articles_path
|