Instituições financeiras > Configurações das instituições financeiras para processamento de arquivos > Configuração de cobrança Itaú

Configuração de leiaute de remessa de cobrança em formato CNAB 400 para o Itaú

BANCOS.RQ-021

Fluxo normal

Para configurar o arquivo CNAB de remessa de títulos de cobrança para o banco Itaú deve ser feita a seguinte configuração no cadastro do banco:

Cadastro de Pessoas

  1. Pessoa jurídica
  2. Razão social: Nome do banco
  3. Nome fantasia: Nome do banco

Aba "Documento"

  1. Informar Febraban: 341

Aba "Banco"

Código do banco no jBoleto: 2
Tamanho do nosso número: 8
Layout CNAB: 400

Aba "Movimentos"

Código do movimento: 01
Título: Remessa

Aba "Retorno"

Código: 02 ENTRADA CONFIRMADA = OBSERVACOES
Código: 03 ENTRADA REJEITADA (NOTA 20 - TABELA 1) = OBSERVACOES
Código: 04 ALTERAÇÃO DE DADOS - NOVA ENTRADA = OBSERVACOES
Código: 05 ALTERAÇÃO DE DADOS - BAIXA = OBSERVACOES
Código: 06 LIQUIDAÇÃO NORMAL = PAGAMENTO
Código: 07 LIQUIDAÇÃO PARCIAL - COBRANÇA INTELIGENTE (B2) = PAGAMENTO
Código: 08 LIQUIDAÇÃO EM CARTÓRIO = PAGAMENTO
Código: 09 BAIXA SIMPLES = PAGAMENTO
Código: 10 BAIXA POR TER SIDO LIQUIDADO = PAGAMENTO
Código: 11 EM SÉRIE (SÓ NO RETORNO SEMANAL) = OBSERVACOES
Código: 12 ABATIMENTO CONCEDIDO = OBSERVACOES
Código: 13 ABATIMENTO CANCELADO = OBSERVACOES
Código: 14 VENCIMENTO ALTERADO = OBSERVACOES
Código: 15 BAIXA REJEITADA (NOTA 20 - TABELA 4) = OBSERVACOES
Código: 16 INSTRUÇÕES REJEITADAS (NOTA 20 - TABELA 3) = OBSERVACOES
Código: 17 ALTERAÇÃO DE DADOS REJEITADOS (NOTA 20 - TABELA 2) = OBSERVACOES
Código: 18 COB CONT/ABAT/BAIXA BLOQ (NOTA 20 - TABELA 5) = PAGAMENTO
Código: 19 CONFIRMAÇÃO DE RECEBIMENTO INSTRUÇÃO DE PROTESTO = OBSERVACOES
Código: 20 Confirma rec instrução Sustação de Protesto/TARIFA = OBSERVACOES
Código: 23 Remessa a cartorio/aponte em cartorio = OBSERVACOES
Código: 24 Instrução de protesto rejeitada/sustada/pendente = OBSERVACOES
Código: 26 Instrucao rejeitada = OBSERVACOES
Código: 28 Debito de tarifas/custas = OBSERVACOES
Código: 29 Tarifa de manutenção de títulos vencidos = DESPESAS
Código: 30 Débito mensal de tarifas (para entradas e baixas) = PAGAMENTO
Código: 32 Baixa por ter sido protestado = LANCAMENTO
Código: 33 Custas de protesto = PAGAMENTO
Código: 34 Custas de sustação = PAGAMENTO
Código: 35 Custas de Cartório Distribuidor = PAGAMENTO
Código: 36 Custas de Edital = PAGAMENTO
Código: 37 Tarifa bloqueto/envio de duplicata = PAGAMENTO
Código: 38 Tarifa de instrução = PAGAMENTO
Código: 39 Tarifa de ocorrências = PAGAMENTO
Código: 40 tarifa emissão de bloqueto/mensal envio duplicata = PAGAMENTO
Código: 41 DÉB MENSAL TARIFAS/EXTRATO POSIÇÃO (B4EP/B4OX) = PAGAMENTO
Código: 42 DÉB MENSAL TARIFAS – OUTRAS INSTRUÇÕES = PAGAMENTO
Código: 43 DÉB MENSAL TARIFAS/MAN DE TÍTULOS VENCIDOS = PAGAMENTO
Código: 44 DÉB MENSAL TARIFAS – OUTRAS OCORRÊNCIAS = PAGAMENTO
Código: 45 DÉB MENSAL TARIFAS – PROTESTO = PAGAMENTO
Código: 46 DÉBITO MENSAL DE TARIFAS – SUSTAÇÃO DE PROTESTO = ACRÉCIMOS
Código: 47 baixa com transferência para desconto = PAGAMENTO
Código: 48 CUSTAS DE SUSTAÇÃO JUDICIALP = PAGAMENTO
Código: 51 TARIFA MENSAL REF/ENTRADAS BANCOS NA CARTEIRA = ACRÉCIMOS
Código: 52 TARIFA MENSAL BAIXAS NA CARTEIRA = ACRÉCIMOS
Código: 53 TARIFA MENSAL BAIXAS EM BANCOS NA CARTEIRA = ACRÉCIMOS
Código: 54 TARIFA MENSAL DE LIQUIDAÇÕES NA CARTEIRA = ACRÉCIMOS
Código: 55 TARIFA MENSAL DE LIQ EM BANCOS CARTEIRA = ACRÉCIMOS
Código: 56 custas de irregularidade = ACRÉCIMOS
Código: 57 instrução cancelada (NOTA 20 – TABELA 8) = OBSERVACOES
Código: 59 BAIXA POR CRÉDITO EM C/C ATRAVÉS DO SISPAG = PAGAMENTO
Código: 60 ENTRADA REJEITADA CARNÊ (NOTA 20 – TABELA 1) = OBSERVACOES
Código: 61 TARIFA EMISSÃO AVISO DE MOV DE TÍTULOS (2154) = DESPESAS
Código: 62 DÉBITO DE TARIFA/AVISO DE MOV TÍTULOS (2154) = DESPESAS
Código: 63 TÍTULO SUSTADO JUDICIALMENTE = OBSERVACOES
Código: 64 ENTRADA CONFIRMADA COM RATEIO DE CRÉDITO = LANCAMENTO
Código: 65 cheque devolvido = OBSERVACOES
Código: 71 ENTRADA REGISTRADA, AGUARDANDO AVALIAÇÃO = OBSERVACOES
Código: 72 BAIXA/CRÉD C/C SISPAG sem título correspondente = OBSERVACOES
Código: 73 CONF ENT/COB SIMPLES/ENT N ACEITA/COB CONTR = LANCAMENTO


Aba Lay-out (CNAB)


Cabeçalho 1

0
1
REMESSA
01
$str.rightPad("COBRANCA",15)
${str.leftPad($conta.retornoAgencia(), 4, "0")}
00
${str.leftPad($conta.retornoContaCorrente(), 5, "0")}
${str.rightPad($conta.retornoDigitoContaCorrente(), 1 )}
${str.repeat(" ", 8)}
${str.rightPad($conta.valueOfNomeCedente(), 30).substring(0,30)}
${str.rightPad("341BANCO ITAU SA",18)}
${str.rightPad($banco.getDataAtual6Digitos(),6," ")}
${str.repeat(" ", 294)}
${str.leftPad("1",6,"0")}



Corpo ( títulos ): 1

1
$str.leftPad($lop.getTipoDocumento(), 2, "0" )
$str.leftPad($lop.getDocumentoCliente(), 14, "0")
${str.leftPad($conta.retornoAgencia(), 4, "0")}
00
${str.leftPad($conta.retornoContaCorrente(), 5, "0")}
${str.rightPad($conta.retornoDigitoContaCorrente(), 1 )}
${str.repeat(" ",4)}
${str.repeat("0",4)}
${str.rightPad($titulo.retornaNumeroDocumento(), 25," ")}
${str.leftPad($titulo.valueOfNumeroBanco(), 8, "0")}
${str.repeat("0",13)}
$str.leftPad($lop.getCarteira().toString(),3,"0")
${str.repeat(" ",21)}
I
01
$str.rightPad($titulo.retornaNumeroDocumento().replace("RECIBO","REC"), 10," ").substring(0,10)
$str.rightPad($titulo.retornoDataVencimento6Digitos(),6,"0")
$str.leftPad($titulo.getSaldo().toText().replace(",", "").replace(".", ""),13,"0")
341
${str.repeat("0",5)}
01
N
$str.rightPad($titulo.retornoDataEmissao6Digitos(),6,"0")
$str.leftPad($conta.valueOfCodigoInstrucaoBancaria1(), 2, "0")
$str.leftPad($conta.valueOfCodigoInstrucaoBancaria2(), 2, "0")
$str.leftPad($titulo.retornoJuroDia().replace(",", "").replace(".", ""),13,"0")
$str.rightPad($titulo.retornoDataVencimento6Digitos(),6,"0")
$str.leftPad($titulo.getDescontos().toText().replace(",", "").replace(".", ""),13,"0")
$str.repeat("0", 13)
$str.leftPad($titulo.retornoAbatimento(),13,"0")
$str.leftPad($titulo.getPessoaTipo(), 2,"0" )
$str.leftPad($titulo.getPessoaDocumento(), 14, "0" )
$str.rightPad($titulo.getPessoaNome(), 30).substring(0,30)
${str.repeat(" ",10)}
$str.rightPad($titulo.getPessoaEndereco(),40).substring(0,40)
${str.repeat(" ",12)}
$str.rightPad($titulo.getPessoaCep().replace("-", "").replace(".", ""),8)
$str.rightPad($titulo.getPessoaCidade(), 15 ).substring(0,15)
$str.rightPad($titulo.getPessoaUf(), 2 )
${str.repeat(" ",30)}
${str.repeat(" ",4)}
${str.repeat(" ",6)}
$str.leftPad($titulo.getDiasProtesto().toString(), 2, "0" )
${str.repeat(" ",1)}
$str.leftPad($sequencia,6,"0")


Observações:
  1. O valor nominal do título será registrado com o saldo do título (valor do título + acréscimos - abatimentos/descontos - valores pagos).


Rodapé: 1

9#*identificação do registro*#
$str.repeat(" ", 393)
$str.leftPad($sequencia,6,"0")


OBS: Quando o código estiver funcional e apto para a implementacão no sistema do cliente, tomar cuidado ao copiar e colar, poderá gerar espaços excedentes no final de cada linha.