Skip to content

Commit

Permalink
[FIX] itau.rb prazo instrução protesto: 09, 34 e 35 (kivanio#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
mileo authored Jun 13, 2024
1 parent cd928e8 commit 241eba2
Showing 1 changed file with 3 additions and 1 deletion.
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 @@ def monta_detalhe(pagamento, sequencial)
end

def prazo_instrucao(pagamento)
return '03' unless pagamento.cod_primeira_instrucao == '09'
return "03" unless %w[09 34 35].include?(
pagamento.cod_primeira_instrucao
)

pagamento.dias_protesto.rjust(2, '0')
end
Expand Down

0 comments on commit 241eba2

Please sign in to comment.