suite
This commit is contained in:
parent
f89badcd12
commit
d55a993cfd
@ -20,7 +20,7 @@
|
||||
%tr
|
||||
%th
|
||||
%th{:rowspan => 2} Nombre de participation
|
||||
-@m_odr_reps.group(:state).each do |state|
|
||||
-@m_odr_reps.group(:state).where(:state => ["Virement envoyé", "Demande validée"]).each do |state|
|
||||
%th{:style => "font-weight:normal", :colspan => 5+(@m_odr.m_odr_brands.count*2)+(@m_odr.m_odr_products.count*2)}
|
||||
Etat :
|
||||
=state_helper state.state
|
||||
@ -28,7 +28,7 @@
|
||||
%tr
|
||||
%th
|
||||
|
||||
-@m_odr_reps.group(:state).each do |state|
|
||||
-@m_odr_reps.group(:state).where(:state => ["Virement envoyé", "Demande validée"]).each do |state|
|
||||
%th Nbr participation
|
||||
%th Nbr pneus
|
||||
|
||||
@ -62,7 +62,7 @@
|
||||
%tr
|
||||
%td Général
|
||||
%td=m_odr_reps.count
|
||||
-@m_odr_reps.group(:state).each do |state|
|
||||
-@m_odr_reps.group(:state).where(:state => ["Virement envoyé", "Demande validée"]).each do |state|
|
||||
%td
|
||||
=m_odr_reps.where(:state => state.state).count
|
||||
%td
|
||||
@ -93,7 +93,7 @@
|
||||
%tr
|
||||
%td=place.m_odr_place.name
|
||||
%td=m_odr_reps.count
|
||||
-@m_odr_reps.group(:state).each do |state|
|
||||
-@m_odr_reps.group(:state).where(:state => ["Virement envoyé", "Demande validée"]).each do |state|
|
||||
%td
|
||||
=p = m_odr_reps.where(:state => state.state).count
|
||||
-nbr_participations_for_places << p if p > 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user