ExCnab.Cnab240.Templates.ChunkFooter (ex_cnab v1.3.6)

Template for rendering a cnab240 chunk footer from a file

Link to this section Summary

Functions

This function generate a Chunk Footer Map from a Cnab240 file, using the FEBRABAN convention. The fields follows the convention hierarchy. and the returns is in PT BR.

Link to this section Functions

Link to this function

generate(raw_string, builded_details)

@spec generate(String.t(), Map.t()) :: {:ok, Map.t()} | {:error, String.t()}

This function generate a Chunk Footer Map from a Cnab240 file, using the FEBRABAN convention. The fields follows the convention hierarchy. and the returns is in PT BR.

You can see all hierarchy in the FEBRABAN documentation.

CNAB
├── Controle
│   ├── Banco (1..3)
│   ├── Lote (4..7)
│   └── Registro (8..8)
│
├── CNAB - USO FEBRABAN (9..17)
│
├── Totais
│   ├── Qtde. de registros (18..23)
│   ├── Somatória dos valores (24..41)
│   └── Somatória quantidade de moedas (42..59)
│
├── Número aviso débito (60..65)
│
├── CNAB (66..230)
│
└── Ocorrências (231..240)