This commit is contained in:
Nicolas Bally 2017-06-07 19:16:11 +02:00
parent 1bd6e7ff75
commit 99ae57c362

View File

@ -1,5 +1,5 @@
-@read_only = true
-@vouistar = true if @reseaux.id != 2 and @reseaux.parent_id != 2
.center.row
.right
@ -46,6 +46,7 @@
%th
Email
-if !@vouistar
%th
CA
%th
@ -83,6 +84,7 @@
%td
=link_to customer.email, "mailto:#{customer.email}"
-if !@vouistar
%td
=number_to_currency customer.accepted_offers.joins(:offer).where(:state => "documents_completed").sum("offers.price * accepted_offers.qte").to_f
@ -99,7 +101,7 @@
=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