Skip to content

Commit

Permalink
[FIX] DV barcode type (#877)
Browse files Browse the repository at this point in the history
* [FIX] bank type

* [FIX] barcode dv

* [FIX] DV barcode type
  • Loading branch information
marinaGD authored and danimaribeiro committed Aug 20, 2019
1 parent 12b1b8a commit 3429ae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions br_payment_cnab/bancos/itau.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ def _get_segmento(self, line, lot_sequency, num_lot, nome_segmento):

def get_dv_digitable_line(self, linha_digitavel):
if len(linha_digitavel) == 47:
return linha_digitavel[4]
return int(linha_digitavel[4])
elif len(linha_digitavel) == 48:
return linha_digitavel[3] # confirmar info
return int(linha_digitavel[3]) # confirmar info

# NOTA 11 do manual: se houverem dois digitos no dac da agencia/conta
# o campo 42 (inicialmente vazio) deve ser utilizado
Expand Down

0 comments on commit 3429ae4

Please sign in to comment.