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

Template for rendering a cnab240 footer from a file

Link to this section Summary

Functions

This function generate a 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

@spec encode(footer :: Map.t()) :: String.t()
Link to this function

generate(raw_string, attrs)

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

This function generate a 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 lotes (18..23)
│   ├── Qtde. de registros (24..29)
│   └── Qtde. de contas concil (30..35)
│
└── CNAB - USO FEBRABAN (36..240)