Introduced StockChange. Implemented first part of stockit-logic with updating article's quantity.

This commit is contained in:
Benjamin Meichsner 2009-01-16 02:17:49 +01:00
parent 7ff0467b16
commit b38025869a
27 changed files with 233 additions and 123 deletions

View file

@ -17,9 +17,9 @@ ActionController::Routing::Routes.draw do |map|
finance.connect 'balancing/:action/:id', :controller => 'balancing'
end
map.resources :suppliers,
:has_many => [:deliveries],
:collection => { :shared_suppliers => :get }
map.resources :suppliers, :collection => { :shared_suppliers => :get } do |suppliers|
suppliers.resources :deliveries, :member => { :drop_stock_change => :post }
end
map.root :controller => 'home', :action => 'index'