Do not set quantity of newly created OrderArticles to 1
This commit is contained in:
parent
a384532619
commit
8e52fca304
6 changed files with 44 additions and 9 deletions
|
|
@ -16,7 +16,7 @@ module DeliveriesHelper
|
|||
block_given? or block = Proc.new {|a| "#{a.name} (#{number_to_currency a.price}/#{a.unit})" }
|
||||
articles.map do |a|
|
||||
{:id => a.id, :text => block.call(a)}
|
||||
end
|
||||
end.unshift({:id => '', :text => ''})
|
||||
end
|
||||
|
||||
def articles_for_table(articles)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue