From 9cb5f9966a910e3e1317e3d4305c73667bfcc0cc Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Fri, 26 Jun 2020 16:42:41 +0200 Subject: [PATCH] suite --- app/views/admin/m_odr_primes/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/m_odr_primes/show.html.haml b/app/views/admin/m_odr_primes/show.html.haml index 36ebbe3..31a73bd 100644 --- a/app/views/admin/m_odr_primes/show.html.haml +++ b/app/views/admin/m_odr_primes/show.html.haml @@ -76,7 +76,7 @@ -if @m_odr_prime.state == "A traiter" and @m_odr_prime.m_odr_virements.where(:refused => false).count == 0 - -if @m_odr_prime.m_odr_file_roulage.date? and @m_odr_prime.m_odr_file_roulage.date <= Date.now + -if @m_odr_prime.m_odr_file_roulage.date? and @m_odr_prime.m_odr_file_roulage.date <= Date.today =link_to "Générer le virement", generate_virement_admin_m_odr_prime_path(@m_odr_prime), :class => "btn btn-primary" -else %span.btn.btn-default