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/index.html.haml
Normal file
16
app/views/deliveries/index.html.haml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
- title "#{@supplier.name}/deliveries"
|
||||
|
||||
%table{:style => "width:50em"}
|
||||
%tr
|
||||
%th Delivered on
|
||||
%th Invoice
|
||||
- for delivery in @deliveries
|
||||
%tr
|
||||
%td=h delivery.delivered_on
|
||||
%td=h "invoice ..."
|
||||
%td= link_to 'Show', [@supplier, delivery]
|
||||
%td= link_to 'Edit', edit_supplier_delivery_path(@supplier,delivery)
|
||||
%td= link_to 'Destroy', [@supplier,delivery], :confirm => 'Are you sure?', :method => :delete
|
||||
|
||||
%br/
|
||||
= link_to 'New delivery', new_supplier_delivery_path(@supplier)
|
||||
Loading…
Add table
Add a link
Reference in a new issue