suite
This commit is contained in:
parent
c616e3e525
commit
e7d937077c
@ -1,11 +1,11 @@
|
|||||||
class ProductOrder < ActiveRecord::Base
|
class ProductOrder < ActiveRecord::Base
|
||||||
belongs_to :reseaux
|
belongs_to :reseaux
|
||||||
|
|
||||||
has_many :payments, :as => :element
|
has_many :payments, :as => :element, :dependent => :destroy
|
||||||
|
|
||||||
has_many :product_order_products
|
has_many :product_order_products, :dependent => :destroy
|
||||||
|
|
||||||
has_many :product_order_documents
|
has_many :product_order_documents, :dependent => :destroy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ class ProductOrder < ActiveRecord::Base
|
|||||||
|
|
||||||
has_many :fournisseurs, :through => :sub_products
|
has_many :fournisseurs, :through => :sub_products
|
||||||
|
|
||||||
has_many :product_order_payments
|
has_many :product_order_payments, :dependent => :destroy
|
||||||
belongs_to :product_order_payment_ok, :class_name => "ProductOrderPayment"
|
belongs_to :product_order_payment_ok, :class_name => "ProductOrderPayment"
|
||||||
|
|
||||||
belongs_to :particular_bill, :class_name => "Particular"
|
belongs_to :particular_bill, :class_name => "Particular"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user