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
12
app/helpers/deliveries_helper.rb
Normal file
12
app/helpers/deliveries_helper.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
module DeliveriesHelper
|
||||
def articles_for_select(supplier)
|
||||
supplier.articles.find(:all, :limit => 10).collect { |a| [truncate(a.name), a.id] }
|
||||
end
|
||||
|
||||
def add_article_link
|
||||
link_to_function "Artikel hinzufügen", nil, { :accesskey => 'n', :title => "ALT + SHIFT + N" } do |page|
|
||||
page.insert_html :bottom, :stock_changes, :partial => 'stock_change', :object => StockChange.new
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue