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

Arrumar o valor do "Seu Número" na Remessa 400 do Banco do Brasil. #250

Merged
merged 1 commit into from
Jan 12, 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
2 changes: 1 addition & 1 deletion lib/brcobranca/remessa/cnab400/banco_brasil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def monta_detalhe(pagamento, sequencial)
detalhe << tipo_cobranca.to_s.ljust(5, ' ') # tipo de cobranca 9[05] 102 a 106
detalhe << carteira # carteira 9[02] 107 a 108
detalhe << pagamento.identificacao_ocorrencia # comando / ocorrência 9[02] 109 a 110
detalhe << pagamento.nosso_numero.to_s.rjust(10, '0') # numero atribuido pela empresa X[10] 111 a 120
detalhe << pagamento.documento_ou_numero.to_s.rjust(10, '0') # numero atribuido pela empresa X[10] 111 a 120
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. [129/80]

detalhe << pagamento.data_vencimento.strftime('%d%m%y') # data de vencimento 9[06] 121 a 126
detalhe << pagamento.formata_valor # valor do titulo 9[13] 127 a 139
detalhe << cod_banco # numero do banco 9[03] 140 a 142
Expand Down