Problème nombre de primes
This commit is contained in:
parent
9c36df619b
commit
128dc118c4
@ -130,8 +130,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-c = current_p_customer.m_odr_primes.where(:state => ["En attente de roulage", "Virement envoyé"]).where("created_at >= ? or created_at <= ?", Date.today.beginning_of_year, Date.today.end_of_year).count
|
-c = current_p_customer.m_odr_primes.where(:state => ["En attente de roulage", "Virement envoyé"]).where("created_at >= ? and created_at <= ?", Date.today.beginning_of_year, Date.today.end_of_year).count
|
||||||
-ca = current_p_customer.m_odr_primes.where(:state => ["En attente de roulage"]).where("created_at >= ? or created_at <= ?", Date.today.beginning_of_year, Date.today.end_of_year).count
|
-ca = current_p_customer.m_odr_primes.where(:state => ["En attente de roulage"]).where("created_at >= ? and created_at <= ?", Date.today.beginning_of_year, Date.today.end_of_year).count
|
||||||
-if c > 0
|
-if c > 0
|
||||||
%br
|
%br
|
||||||
%br
|
%br
|
||||||
@ -167,7 +167,7 @@
|
|||||||
|
|
||||||
-if current_p_customer.m_odr_primes.count > 0
|
-if current_p_customer.m_odr_primes.count > 0
|
||||||
%table.table
|
%table.table
|
||||||
=render current_p_customer.m_odr_primes.where("created_at >= ? or created_at <= ?", Date.today.beginning_of_year, Date.today.end_of_year)
|
=render current_p_customer.m_odr_primes.where("created_at >= ? and created_at <= ?", Date.today.beginning_of_year, Date.today.end_of_year)
|
||||||
|
|
||||||
-else
|
-else
|
||||||
.empty
|
.empty
|
||||||
|
Loading…
x
Reference in New Issue
Block a user