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
16
app/views/deliveries/_form.html.haml
Normal file
16
app/views/deliveries/_form.html.haml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
- form_for([@supplier,@delivery]) do |f|
|
||||
= f.error_messages
|
||||
= f.hidden_field :supplier_id
|
||||
%p
|
||||
%b= f.label :delivered_on
|
||||
= f.date_select :delivered_on
|
||||
|
||||
%h2 Artikel
|
||||
#stock_changes
|
||||
= yield
|
||||
%br/
|
||||
= add_article_link
|
||||
%p
|
||||
= f.submit "Speichern"
|
||||
|
||||
= link_to 'Zurück', supplier_deliveries_path(@supplier)
|
||||
Loading…
Add table
Add a link
Reference in a new issue