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
25
app/views/deliveries/show.html.haml
Normal file
25
app/views/deliveries/show.html.haml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
- title "Lieferung anzeigen"
|
||||
|
||||
%p
|
||||
%b Lieferant:
|
||||
=h @delivery.supplier.name
|
||||
%p
|
||||
%b Delivered on:
|
||||
=h @delivery.delivered_on
|
||||
|
||||
%h2 Artikel
|
||||
%table.list{:style => "width:30em"}
|
||||
%tr
|
||||
%th Artikel
|
||||
%th Einheit
|
||||
%th Menge
|
||||
- for stock_change in @delivery.stock_changes.find :all, :include => :article
|
||||
%tr
|
||||
%td= stock_change.article.name
|
||||
%td= stock_change.article.unit
|
||||
%td= stock_change.quantity
|
||||
|
||||
%br/
|
||||
= link_to 'Edit', edit_supplier_delivery_path(@supplier,@delivery)
|
||||
|
|
||||
= link_to 'Back', supplier_deliveries_path(@supplier)
|
||||
Loading…
Add table
Add a link
Reference in a new issue