only show undeleted articles in receive screen

This commit is contained in:
wvengen 2014-06-11 09:42:07 +02:00
parent 9e58a6f2b1
commit 4b6231129c

View file

@ -1,4 +1,4 @@
- new_articles = (@order.supplier.articles rescue @order.articles)
- new_articles = (@order.supplier.articles.undeleted rescue @order.articles)
- new_article_data = articles_for_select2(new_articles, @order_articles.map(&:article_id)) {|a| "#{a.name} (#{a.unit_quantity}#{a.unit})"}
- content_for :javascript do
:javascript