show all articles in receive screen (not just of this order)

This commit is contained in:
wvengen 2013-12-21 17:33:06 +01:00
parent bb331f99a7
commit aa6041d337

View file

@ -1,4 +1,5 @@
- new_article_data = articles_for_select2(@order.articles, @order_articles.map(&:article_id)) {|a| "#{a.name} (#{a.unit_quantity}#{a.unit})" }
- new_articles = (@order.supplier.articles 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