Initial commit of foodsoft 2
This commit is contained in:
commit
5b9a7e05df
657 changed files with 70444 additions and 0 deletions
20
app/models/group_order_article_quantity.rb
Normal file
20
app/models/group_order_article_quantity.rb
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# stores the quantity, tolerance and timestamp of an GroupOrderArticle
|
||||
# Considers every update of an article-order, so may rows for one group_order_article ar possible.
|
||||
#
|
||||
# properties:
|
||||
# * group_order_article_id (int)
|
||||
# * quantity (int)
|
||||
# * tolerance (in)
|
||||
# * created_on (timestamp)
|
||||
|
||||
class GroupOrderArticleQuantity < ActiveRecord::Base
|
||||
# gettext-option
|
||||
untranslate_all
|
||||
|
||||
belongs_to :group_order_article
|
||||
|
||||
validates_presence_of :group_order_article_id
|
||||
validates_inclusion_of :quantity, :in => 0..99
|
||||
validates_inclusion_of :tolerance, :in => 0..99
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue