From 241eba22252bc1075d6d69fc5b0a3d2cffaef725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Felipe=20Mil=C3=A9o?= Date: Thu, 13 Jun 2024 17:21:35 -0300 Subject: [PATCH] =?UTF-8?q?[FIX]=20itau.rb=20prazo=20instru=C3=A7=C3=A3o?= =?UTF-8?q?=20protesto:=2009,=2034=20e=2035=20(#259)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/brcobranca/remessa/cnab400/itau.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/brcobranca/remessa/cnab400/itau.rb b/lib/brcobranca/remessa/cnab400/itau.rb index b211c1e2..d9d88c03 100644 --- a/lib/brcobranca/remessa/cnab400/itau.rb +++ b/lib/brcobranca/remessa/cnab400/itau.rb @@ -140,7 +140,9 @@ def monta_detalhe(pagamento, sequencial) end def prazo_instrucao(pagamento) - return '03' unless pagamento.cod_primeira_instrucao == '09' + return "03" unless %w[09 34 35].include?( + pagamento.cod_primeira_instrucao + ) pagamento.dias_protesto.rjust(2, '0') end