Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] itau.rb prazo instrução protesto: 09, 34 e 35 #259

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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
Loading