2009-02-12 18:32:20 +01:00
|
|
|
- remote_form_for stock_article, :url => add_stock_article_stock_takings_path do |form|
|
2009-02-06 16:26:35 +01:00
|
|
|
= form.error_messages
|
|
|
|
%p
|
2009-03-22 13:56:54 +01:00
|
|
|
Lieferantin
|
2009-02-12 18:32:20 +01:00
|
|
|
%br/
|
|
|
|
= form.select :supplier_id, Supplier.without_deleted(:order => 'name').collect{ |s| [s.name, s.id] }
|
|
|
|
%p
|
|
|
|
Name
|
2009-02-06 16:26:35 +01:00
|
|
|
%br/
|
|
|
|
= form.text_field :name
|
|
|
|
%p
|
2009-02-12 18:32:20 +01:00
|
|
|
Einheit
|
2009-02-06 16:26:35 +01:00
|
|
|
%br/
|
|
|
|
= form.text_field :unit
|
|
|
|
%p
|
2009-02-12 18:32:20 +01:00
|
|
|
Notiz
|
2009-02-06 16:26:35 +01:00
|
|
|
%br/
|
|
|
|
= form.text_field :note
|
|
|
|
%p
|
2009-02-12 18:32:20 +01:00
|
|
|
Nettopreis
|
2009-02-06 16:26:35 +01:00
|
|
|
%br/
|
|
|
|
= form.text_field :price
|
|
|
|
%p
|
2009-02-12 18:32:20 +01:00
|
|
|
MwSt
|
2009-02-06 16:26:35 +01:00
|
|
|
%br/
|
|
|
|
= form.text_field :tax, :value => (stock_article.tax || 7.0)
|
|
|
|
%p
|
2009-02-12 18:32:20 +01:00
|
|
|
Pfand
|
2009-02-06 16:26:35 +01:00
|
|
|
%br/
|
|
|
|
= form.text_field :deposit
|
|
|
|
%p
|
|
|
|
Kategorie:
|
2009-02-06 17:06:08 +01:00
|
|
|
= form.select :article_category_id, ArticleCategory.all(:order => 'name').collect { |c| [c.name, c.id] }
|
2009-02-06 16:26:35 +01:00
|
|
|
%p
|
2009-02-12 18:32:20 +01:00
|
|
|
= submit_tag "Lagerartikel hinzufügen"
|