Hide deleted stockarticles when creating new deliveries.

This commit is contained in:
Benjamin Meichsner 2010-07-24 20:28:37 +02:00
parent f640c673de
commit 7742403bbe

View file

@ -10,7 +10,7 @@ module DeliveriesHelper
end end
def stock_articles_for_select(supplier) def stock_articles_for_select(supplier)
supplier.stock_articles.collect {|a| ["#{a.name} (#{number_to_currency a.price}/#{a.unit})", a.id] } supplier.stock_articles.without_deleted.collect {|a| ["#{a.name} (#{number_to_currency a.price}/#{a.unit})", a.id] }
end end
end end