Merge remote-tracking branch 'origin/rails3'
Conflicts: Gemfile Gemfile.lock
This commit is contained in:
commit
7a63394dac
6 changed files with 22 additions and 10 deletions
|
|
@ -11,7 +11,7 @@ module DeliveriesHelper
|
|||
end
|
||||
|
||||
def stock_articles_for_select(supplier)
|
||||
supplier.stock_articles.undeleted.map {|a| ["#{a.name} (#{number_to_currency a.price}/#{a.unit})", a.id] }
|
||||
supplier.stock_articles.undeleted.reorder('articles.name ASC').map {|a| ["#{a.name} (#{number_to_currency a.price}/#{a.unit})", a.id] }
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue