Add StockChanges index

This commit is contained in:
Julius 2013-07-09 21:46:04 +02:00
parent d397132f7b
commit ef62a18ac9
9 changed files with 59 additions and 1 deletions

View file

@ -9,4 +9,11 @@ class String
string
end
end
end
end
class Array
def cumulative_sum
csum = 0
self.map{|val| csum += val}
end
end

View file

@ -96,6 +96,8 @@ Foodsoft::Application.routes.draw do
get :articles_search
get :fill_new_stock_article_form
end
resources :stock_changes, :only => [:index], :to => 'stock_changes'
end
resources :suppliers do