Introduced StockChange. Implemented first part of stockit-logic with updating article's quantity.
This commit is contained in:
parent
7ff0467b16
commit
b38025869a
27 changed files with 233 additions and 123 deletions
6
app/views/deliveries/_stock_change.html.haml
Normal file
6
app/views/deliveries/_stock_change.html.haml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
%p
|
||||
- fields_for "delivery[stock_change_attributes][]", stock_change do |form|
|
||||
= form.select :article_id, articles_for_select(@supplier), :prompt => " -- Artikel auswählen -- "
|
||||
Menge
|
||||
= form.text_field :quantity, :size => 5, :autocomplete => 'off'
|
||||
= link_to_function "Löschen", "$(this).up('p').remove()"
|
||||
Loading…
Add table
Add a link
Reference in a new issue