Added buttons to in/decrease group order article results.

Signed-off-by: bennibu <benni@dresdener27.de>
This commit is contained in:
sandoz 2009-03-21 01:56:17 +08:00 committed by bennibu
parent f7f13ee7a6
commit 3654ba7cf1
3 changed files with 26 additions and 1 deletions

View file

@ -24,6 +24,7 @@ class GroupOrderArticle < ActiveRecord::Base
validates_presence_of :group_order_id, :order_article_id
validates_inclusion_of :quantity, :in => 0..99
validates_inclusion_of :result, :in => 0..99, :allow_nil => true
validates_inclusion_of :tolerance, :in => 0..99
validates_uniqueness_of :order_article_id, :scope => :group_order_id # just once an article per group order