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/edit.html.haml
Normal file
16
app/views/deliveries/edit.html.haml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
- title "Lieferung bearbeiten"
|
||||
|
||||
%p
|
||||
%b Lieferant:
|
||||
= @supplier.name
|
||||
|
||||
- render :layout => 'form' do
|
||||
%table{:style => "width:40em"}
|
||||
- for stock_change in @delivery.stock_changes
|
||||
%tr[stock_change]
|
||||
%td= stock_change.article.name
|
||||
%td= stock_change.quantity
|
||||
%td
|
||||
= link_to_remote "Artikel entfernen", |
|
||||
:url => drop_stock_change_supplier_delivery_path(@supplier, @delivery, :stock_change_id => stock_change), |
|
||||
:method => :post |
|
||||
Loading…
Add table
Add a link
Reference in a new issue