-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Santander Remessa 240: Adiciona código e dias da baixa/devolução #261
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,6 +120,10 @@ def dv_agencia_cobradora | |
''.rjust(1, ' ') | ||
end | ||
|
||
def dias_baixa(pagamento) | ||
pagamento.dias_baixa.to_s.rjust(2, '0') | ||
end | ||
|
||
def monta_header_arquivo | ||
header_arquivo = '' # CAMPO TAMANHO | ||
header_arquivo += cod_banco # codigo do banco 3 | ||
|
@@ -182,9 +186,9 @@ def monta_segmento_p(pagamento, nro_lote, sequencial) | |
segmento_p << formata_documento_ou_numero(pagamento) # identificacao titulo empresa 25 | ||
segmento_p << pagamento.codigo_protesto # cod. para protesto 1 | ||
segmento_p << pagamento.dias_protesto.to_s.rjust(2, '0') # dias para protesto 2 | ||
segmento_p << '3' # cod. para baixa 1 | ||
segmento_p << codigo_baixa(pagamento) # cod. para baixa 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Metrics/LineLength: Line is too long. [113/80] |
||
segmento_p << '0' # zero fixo 1 | ||
segmento_p << '00' # dias para baixa 2 | ||
segmento_p << dias_baixa(pagamento) # dias para baixa 2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Metrics/LineLength: Line is too long. [113/80] |
||
segmento_p << '00' # cod. da moeda 2 | ||
segmento_p << ''.rjust(11, ' ') # uso exclusivo 11 | ||
segmento_p | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,9 @@ | |
cep_sacado: '12345678', | ||
cidade_sacado: 'Santa rita de cássia maria da silva', | ||
uf_sacado: 'SP', | ||
numero: '123') | ||
numero: '123', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
codigo_baixa: '3', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
dias_baixa: '0') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
end | ||
let(:params) do | ||
{ empresa_mae: 'SOCIEDADE BRASILEIRA DE ZOOLOGIA LTDA', | ||
|
There was a problem hiding this comment.
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.