This commit is contained in:
Nicolas Bally 2018-08-23 18:07:43 +02:00
parent c616e3e525
commit e7d937077c

View File

@ -1,11 +1,11 @@
class ProductOrder < ActiveRecord::Base
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 :product_order_payments
has_many :product_order_payments, :dependent => :destroy
belongs_to :product_order_payment_ok, :class_name => "ProductOrderPayment"
belongs_to :particular_bill, :class_name => "Particular"