Merge pull request #150 from foodcoop-rostock/stock_article_quantity_history

Show StockChanges index
This commit is contained in:
wvengen 2013-07-13 03:16:31 -07:00
commit 126f7e7459
10 changed files with 68 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

@ -1676,6 +1676,15 @@ de:
title: Lagerartikel bearbeiten
form:
price_hint: Um Chaos zu vermeiden können bis auf weiteres die Preise von angelegten Lagerartikeln nicht mehr verändert werden.
history:
change_quantity: Veränderung
datetime: Zeitpunkt
delivery: Lieferung
new_quantity: Neuer Bestand
order: Bestellung
reason: Ereignis
stock_changes: Verlauf anzeigen für »%{article_name}«
stock_taking: Inventur
index:
article:
article: Artikel
@ -1822,6 +1831,7 @@ de:
close: Schließen
delete: Löschen
edit: Bearbeiten
history: Verlauf anzeigen
marks:
close: ! '×'
or_cancel: oder abbrechen

View file

@ -1678,6 +1678,15 @@ en:
title: Edit stock articles
form:
price_hint: To avoid choas, it is not possible to edit the prices of already added stock articles until further notice.
history:
change_quantity: Change
datetime: Time
delivery: Delivery
new_quantity: New quantity
order: Order
reason: Reason
stock_changes: Stock quantity changes of %{article_name}
stock_taking: Inventory
index:
article:
article: Article
@ -1824,6 +1833,7 @@ en:
close: Close
delete: Delete
edit: Edit
history: Show history
marks:
close: ! '×'
or_cancel: or cancel

View file

@ -96,6 +96,8 @@ Foodsoft::Application.routes.draw do
get :articles_search
get :fill_new_stock_article_form
end
get :history
end
resources :suppliers do