class ParticularHist < ApplicationRecord
  belongs_to :particular
  belongs_to :p_customer
  
  
  acts_as_sorting :fields => {
    :id => {:name => "Id", :reorder => true},
   # :p_customer => {:name => "Client", :reorder => true, :sort_name => "p_customers.cc_show_name"},
    :created_at => {:name => "Date", :reorder => true},
    :npai => {:name => "NPAI ?", :reorder => true, :as => :boolean},
    :description => {:name => "Evenement", :reorder => true},
    
    :civilite => {:name => "Civilité", :reorder => true},
    :name => {:name => "Nom", :reorder => true},
    :firstname => {:name => "Nom", :reorder => true},
    #:address_1 => {:name => "Nom", :reorder => true},
    :address_2 => {:name => "Adresse", :reorder => true},
    :address_3 => {:name => "Adresse suite", :reorder => true},
    :cp => {:name => "Code postal", :reorder => true},
    :city => {:name => "Ville", :reorder => true},
    :country => {:name => "Pays", :reorder => true},
    :tel => {:name => "Tel", :reorder => true},
    :email => {:name => "Email", :reorder => true},
   
    #:actions => {:name => "Actions", :reorder => true},

  }
  
end
