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
9
app/views/stock_takings/_stock_change.html.haml
Normal file
9
app/views/stock_takings/_stock_change.html.haml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
%p
|
||||
- fields_for "stock_taking[stock_change_attributes][]", stock_change do |form|
|
||||
- article = stock_change.stock_article
|
||||
|
||||
= form.hidden_field :stock_article_id
|
||||
= "Menge (#{article.quantity_available})"
|
||||
= form.text_field :quantity, :size => 5, :autocomplete => 'off'
|
||||
%b=h truncate(article.name)
|
||||
= "(#{number_to_currency(article.price)} / #{article.unit})"
|
||||
Loading…
Add table
Add a link
Reference in a new issue