remove qi_cache

This commit is contained in:
Barnabé 2021-09-24 17:52:23 +02:00
parent 60ee0d8197
commit 4ad0ac7db5

View File

@ -88,11 +88,11 @@ class PProductRef < ApplicationRecord
self.p_product.p_product_cat_id self.p_product.p_product_cat_id
end end
QI_DYNAMICS = %w(name code p_product_cat_id sub_cat_names cat_name) # QI_DYNAMICS = %w(name code p_product_cat_id sub_cat_names cat_name)
eval(QI_DYNAMICS_CORE) # eval(QI_DYNAMICS_CORE)
before_validation :qi_dynamics_cache # before_validation :qi_dynamics_cache
def get_price(options) def get_price(options)
p_customer = PCustomer.find(options[:p_customer_id]) if options[:p_customer_id] p_customer = PCustomer.find(options[:p_customer_id]) if options[:p_customer_id]