This commit is contained in:
Nicolas Bally 2020-04-22 23:23:56 +02:00
parent 232aef54e6
commit 63a33650a9
2 changed files with 7 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class MOdrRep < ApplicationRecord
belongs_to :m_odr_tracker belongs_to :m_odr_tracker
belongs_to :m_odr_product_cat
def reduc_code_needed? def reduc_code_needed?
@ -282,6 +283,8 @@ file_admin_ok remise particular_civilite particular_name particular_firstname pa
:cc_tracker_name => {:name => "Trackeur", :reorder => true}, :cc_tracker_name => {:name => "Trackeur", :reorder => true},
:m_odr_product_cat => {:name => "Type"},
:actions => "Actions", :actions => "Actions",

View File

@ -19,6 +19,10 @@
-tr[:cc_admin_ok_to_send] = capture do -tr[:cc_admin_ok_to_send] = capture do
%td= "oui" if m_odr_rep.admin_ok_to_send %td= "oui" if m_odr_rep.admin_ok_to_send
-tr[:m_odr_product_cat] = capture do
%td= m_odr_rep.m_odr_product_cat.name if m_odr_rep.m_odr_product_cat
-tr[:actions] = capture do -tr[:actions] = capture do
%td.actions %td.actions