Introduced StockTaking. TODO: Dry up the stockit/stock_takings/deliveries controllers/views!
This commit is contained in:
parent
2bb4cdb9d6
commit
951d19db6a
30 changed files with 436 additions and 55 deletions
33
app/views/deliveries/_stock_article_form.html.haml
Normal file
33
app/views/deliveries/_stock_article_form.html.haml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
- remote_form_for stock_article, :url => add_stock_article_supplier_deliveries_path(@supplier) do |form|
|
||||
= form.error_messages
|
||||
= form.hidden_field :supplier_id
|
||||
|
||||
%p
|
||||
= form.label :name
|
||||
%br/
|
||||
= form.text_field :name
|
||||
%p
|
||||
= form.label :unit
|
||||
%br/
|
||||
= form.text_field :unit
|
||||
%p
|
||||
= form.label :note
|
||||
%br/
|
||||
= form.text_field :note
|
||||
%p
|
||||
= form.label :price
|
||||
%br/
|
||||
= form.text_field :price
|
||||
%p
|
||||
= form.label :tax
|
||||
%br/
|
||||
= form.text_field :tax, :value => (stock_article.tax || 7.0)
|
||||
%p
|
||||
= form.label :deposit
|
||||
%br/
|
||||
= form.text_field :deposit
|
||||
%p
|
||||
Kategorie:
|
||||
= form.select :article_category_id, ArticleCategory.all(:order => 'name').collect { |c| [c.name, c.id] }
|
||||
%p
|
||||
= submit_tag "Lagerartikel speichern"
|
||||
Loading…
Add table
Add a link
Reference in a new issue