-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Conversation
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 comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics/LineLength: Line is too long. [113/80]
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics/LineLength: Line is too long. [113/80]
@@ -120,6 +120,10 @@ def dv_agencia_cobradora | |||
''.rjust(1, ' ') | |||
end | |||
|
|||
def dias_baixa(pagamento) | |||
pagamento.dias_baixa.to_s.rjust(2, '0') |
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.
numero: '123') | ||
numero: '123', | ||
codigo_baixa: '3', | ||
dias_baixa: '0') |
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.
@@ -15,7 +15,9 @@ | |||
cep_sacado: '12345678', | |||
cidade_sacado: 'Santa rita de cássia maria da silva', | |||
uf_sacado: 'SP', | |||
numero: '123') | |||
numero: '123', | |||
codigo_baixa: '3', |
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.
@@ -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 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.
O objetivo desta PR é capturar o código e os dias da baixa/devolução do pagamento.