Skip to content

Commit

Permalink
[FIX] Remove caracteres da linha digitável
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaGD authored and danimaribeiro committed Aug 19, 2019
1 parent d483330 commit 12b1b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br_payment_cnab/bancos/itau.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _get_segmento(self, line, lot_sequency, num_lot, nome_segmento):
segmento.update({
'codigo_de_barras': int(line.barcode[20:]),
'codigo_de_barras_dv': self.get_dv_digitable_line(
line.linha_digitavel)
self._just_numbers(line.linha_digitavel))
})
segmento.update({
'numero_parcela': int(segmento.get('numero_parcela')[:13]),
Expand Down

0 comments on commit 12b1b8a

Please sign in to comment.