Merge pull request #118 from balkansalat/rails3-order-delivery-articles

Order articles for delivery selection by name only
This commit is contained in:
Benjamin Meichsner 2013-06-09 09:15:20 -07:00
commit fd091d9b89
1 changed files with 1 additions and 1 deletions

View File

@ -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