suite
This commit is contained in:
parent
99ae57c362
commit
6aad844697
@ -1,5 +1,5 @@
|
||||
-@read_only = true
|
||||
-@vouistar = true if @reseaux.id != 2 and @reseaux.parent_id != 2
|
||||
-@vouistar = true if @reseaux.id == 2 or @reseaux.parent_id == 2
|
||||
.center.row
|
||||
|
||||
.right
|
||||
@ -49,8 +49,8 @@
|
||||
-if !@vouistar
|
||||
%th
|
||||
CA
|
||||
%th
|
||||
Gains
|
||||
%th
|
||||
Gains
|
||||
|
||||
%th Dernière activité
|
||||
|
||||
@ -88,12 +88,12 @@
|
||||
%td
|
||||
=number_to_currency customer.accepted_offers.joins(:offer).where(:state => "documents_completed").sum("offers.price * accepted_offers.qte").to_f
|
||||
|
||||
%td
|
||||
-g = customer.accepted_offers.joins(:offer).where(:state => "documents_completed").sum("offers.gain * accepted_offers.qte").to_f
|
||||
=number_to_currency g
|
||||
-gain += g
|
||||
|
||||
|
||||
%td
|
||||
-g = customer.accepted_offers.joins(:offer).where(:state => "documents_completed").sum("offers.gain * accepted_offers.qte").to_f
|
||||
=number_to_currency g
|
||||
-gain += g
|
||||
|
||||
|
||||
%td=time_ago_in_words(customer.last_activity) if customer.last_activity
|
||||
|
||||
|
||||
@ -101,10 +101,11 @@
|
||||
=link_to i(:eye), public_customer_path(customer)
|
||||
=link_to i(:envelope), new_public_customer_message_path(:thing_type => "Customer", :thing_id => customer.id)
|
||||
|
||||
-if !@vouistar
|
||||
%div{:style => "position:absolute;top:-30px;right:10px;"}
|
||||
Gains :
|
||||
=number_to_currency gain
|
||||
|
||||
|
||||
%div{:style => "position:absolute;top:-30px;right:10px;"}
|
||||
Gains :
|
||||
=number_to_currency gain
|
||||
-if @reseaux.id != 2 and @reseaux.parent_id != 2
|
||||
%h3 Les besoins de mon réseau
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user