Added buttons to in/decrease group order article results.
Signed-off-by: bennibu <benni@dresdener27.de>
This commit is contained in:
parent
f7f13ee7a6
commit
3654ba7cf1
3 changed files with 26 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue