Skip to content

Commit

Permalink
[FIX] itau.rb prazo instrução protesto: 09, 34 e 35
Browse files Browse the repository at this point in the history
  • Loading branch information
mileo committed Jun 13, 2024
1 parent cd928e8 commit 8a89e8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/brcobranca/remessa/cnab400/itau.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?(

Check notice

Code scanning / Rubocop

Checks if uses of quotes match the configured preference. Note

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
pagamento.cod_primeira_instrucao
)

pagamento.dias_protesto.rjust(2, '0')
end
Expand Down

0 comments on commit 8a89e8b

Please sign in to comment.