API v1 order_articles endpoints
This commit is contained in:
parent
127ae83f04
commit
ed9192c47f
14 changed files with 323 additions and 4 deletions
|
|
@ -13,7 +13,8 @@ class Ordergroup < Group
|
|||
|
||||
has_many :financial_transactions
|
||||
has_many :group_orders
|
||||
has_many :orders, :through => :group_orders
|
||||
has_many :orders, through: :group_orders
|
||||
has_many :group_order_articles, through: :group_orders
|
||||
|
||||
validates_numericality_of :account_balance, :message => I18n.t('ordergroups.model.invalid_balance')
|
||||
validate :uniqueness_of_name, :uniqueness_of_members
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue