diff --git a/app/views/public/my_account/index.html.haml b/app/views/public/my_account/index.html.haml index ccd248b..5023bdc 100644 --- a/app/views/public/my_account/index.html.haml +++ b/app/views/public/my_account/index.html.haml @@ -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 - -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 + -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 >= ? and created_at <= ?", Date.today.beginning_of_year, Date.today.end_of_year).count -if c > 0 %br %br @@ -167,7 +167,7 @@ -if current_p_customer.m_odr_primes.count > 0 %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 .empty