Add StockChanges index
This commit is contained in:
parent
d397132f7b
commit
ef62a18ac9
9 changed files with 59 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue