modifs ergonomie
This commit is contained in:
parent
c9b2379531
commit
3fde739862
@ -499,9 +499,8 @@ class PCustomer < ApplicationRecord
|
|||||||
if self.particular
|
if self.particular
|
||||||
n = ""
|
n = ""
|
||||||
n += self.particular.organisation+" " if self.particular.organisation?
|
n += self.particular.organisation+" " if self.particular.organisation?
|
||||||
|
|
||||||
n += self.particular.firstname+" " if self.particular.firstname?
|
|
||||||
n += self.particular.name+" " if self.particular.name?
|
n += self.particular.name+" " if self.particular.name?
|
||||||
|
n += self.particular.firstname+" " if self.particular.firstname?
|
||||||
return n
|
return n
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -11,6 +11,21 @@
|
|||||||
|
|
||||||
.qi_row
|
.qi_row
|
||||||
.qi_pannel.qi_plain.padding
|
.qi_pannel.qi_plain.padding
|
||||||
|
|
||||||
|
Dernières primes versées au client
|
||||||
|
|
||||||
|
-params[:search][:per_page] = params[:search][:per_page] || 50
|
||||||
|
-per_page = params[:search][:per_page]
|
||||||
|
-page = (params[:page] and params[:page] != "") ? params[:page] : 1
|
||||||
|
-@m_odr_primes = @m_odr_prime.p_customer.m_odr_primes.where("id != ? ", @m_odr_prime.id)
|
||||||
|
-@m_odr_primes = sort_by_sorting(@m_odr_primes, "created_at DESC")
|
||||||
|
-@m_odr_primes = @m_odr_primes.page(page).per(per_page)
|
||||||
|
|
||||||
|
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @m_odr_primes}
|
||||||
|
|
||||||
|
%hr
|
||||||
|
|
||||||
|
|
||||||
#head=render :partial => "admin/m_odr_primes/head"
|
#head=render :partial => "admin/m_odr_primes/head"
|
||||||
|
|
||||||
%h3
|
%h3
|
||||||
@ -112,17 +127,6 @@
|
|||||||
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @mail_hists}
|
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @mail_hists}
|
||||||
|
|
||||||
|
|
||||||
%hr
|
|
||||||
Dernières primes versées au client
|
|
||||||
|
|
||||||
-params[:search][:per_page] = params[:search][:per_page] || 50
|
|
||||||
-per_page = params[:search][:per_page]
|
|
||||||
-page = (params[:page] and params[:page] != "") ? params[:page] : 1
|
|
||||||
-@m_odr_primes = @m_odr_prime.p_customer.m_odr_primes.where("id != ? ", @m_odr_prime.id)
|
|
||||||
-@m_odr_primes = sort_by_sorting(@m_odr_primes, "created_at DESC")
|
|
||||||
-@m_odr_primes = @m_odr_primes.page(page).per(per_page)
|
|
||||||
|
|
||||||
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @m_odr_primes}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -69,7 +69,14 @@
|
|||||||
=ic :"file-text-o"
|
=ic :"file-text-o"
|
||||||
Documents
|
Documents
|
||||||
|
|
||||||
-if current_admin.has_permission?("virements.view")
|
|
||||||
|
-if current_admin.has_permission?("primes")
|
||||||
|
.element
|
||||||
|
=link_to admin_m_odr_primes_path do
|
||||||
|
.cat#big_cat_payments
|
||||||
|
=ic :"eur"
|
||||||
|
Primes
|
||||||
|
-elsif current_admin.has_permission?("virements.view")
|
||||||
.element
|
.element
|
||||||
=link_to admin_m_odr_virements_path do
|
=link_to admin_m_odr_virements_path do
|
||||||
.cat#big_cat_payments
|
.cat#big_cat_payments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user