From c9c65474cfe738fdf9399306e6b0e72d846cb0cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A9?= Date: Mon, 18 Oct 2021 16:18:26 +0200 Subject: [PATCH] show automatic cc_name --- app/models/p_product_ref.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/p_product_ref.rb b/app/models/p_product_ref.rb index 5790117..0248b8d 100644 --- a/app/models/p_product_ref.rb +++ b/app/models/p_product_ref.rb @@ -42,8 +42,8 @@ class PProductRef < ApplicationRecord :p_product_cat => {:name => "Catégorie", :reorder => true}, :ref => {:name => "Référence"}, :cc_name => {:name => "Produit"}, - :description => {:name => "Description"}, - :ct_sub_name => {:name => "Nom référence"}, + # :description => {:name => "Description"}, + :cc_name => {:name => "Nom référence"}, :ct_price_ht => {:name => "Prix de vente", :as => :currency}, :ean => {:name => "EAN"}, :deee => {:name => "DEEE", :as => :currency}, @@ -195,7 +195,7 @@ class PProductRef < ApplicationRecord end def ca_sorecop - # return ct_sorecop if ct_sorecop + return ct_sorecop if ct_sorecop return "Pas de catégorie Sorecop" if self.p_product.sorecop_cat.blank? # if self.cc_sorecop and self.cc_sorecop > 0.0