make both ordered and received products visible in order screens and pdfs

This commit is contained in:
wvengen 2013-09-16 23:52:58 +02:00
parent ee31c0c2af
commit 8ca95f396f
7 changed files with 60 additions and 30 deletions

View file

@ -14,7 +14,7 @@ class GroupOrderArticle < ActiveRecord::Base
validates_inclusion_of :tolerance, :in => 0..99
validates_uniqueness_of :order_article_id, :scope => :group_order_id # just once an article per group order
scope :ordered, :conditions => 'result > 0'
scope :ordered, :conditions => 'result > 0 OR quantity > 0 OR tolerance > 0'
localize_input_of :result