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

remessa itau: fixa o tamanho das instruções #262

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

antoniospneto
Copy link
Contributor

Essa alteração garante que os códigos de instrução de protesto tenham sempre dois dígitos, prevenindo problemas de formatação nos arquivos de remessa do banco Itaú.

detalhe << pagamento.cod_primeira_instrucao # 1a instrucao - deixar zero X[02]
detalhe << pagamento.cod_segunda_instrucao # 2a instrucao - deixar zero X[02]
detalhe << pagamento.cod_primeira_instrucao.to_s.rjust(2, '0') # 1a instrucao - deixar zero X[02]
detalhe << pagamento.cod_segunda_instrucao.to_s.rjust(2, '0') # 2a instrucao - deixar zero X[02]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Metrics/LineLength: Line is too long. [121/80]

@@ -114,8 +114,8 @@ def monta_detalhe(pagamento, sequencial)
detalhe << pagamento.especie_titulo # especie do titulo X[02]
detalhe << aceite # aceite (A/N) X[01]
detalhe << pagamento.data_emissao.strftime('%d%m%y') # data de emissao 9[06]
detalhe << pagamento.cod_primeira_instrucao # 1a instrucao - deixar zero X[02]
detalhe << pagamento.cod_segunda_instrucao # 2a instrucao - deixar zero X[02]
detalhe << pagamento.cod_primeira_instrucao.to_s.rjust(2, '0') # 1a instrucao - deixar zero X[02]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Metrics/LineLength: Line is too long. [121/80]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants