Skip to content

Commit

Permalink
[FIX] DV barcode type (Trust-Code#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 SeuMarco committed Jan 24, 2020
1 parent e9323b4 commit 745bb7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions br_payment_cnab/bancos/itau.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def _get_segmento(self, line, lot_sequency, num_lot, nome_segmento):

def get_dv_digitable_line(self, linha_digitavel):
if len(linha_digitavel) == 47:
<<<<<<< HEAD
<<<<<<< HEAD
return int(linha_digitavel[4])
elif len(linha_digitavel) == 48:
Expand All @@ -152,6 +153,11 @@ def get_dv_digitable_line(self, linha_digitavel):
elif len(linha_digitavel) == 48:
return linha_digitavel[3] # confirmar info
>>>>>>> c0f24cd3... [ADD] Remaining info to barcode payment (#870)
=======
return int(linha_digitavel[4])
elif len(linha_digitavel) == 48:
return int(linha_digitavel[3]) # confirmar info
>>>>>>> 3429ae44... [FIX] DV barcode type (#877)

# 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 745bb7d

Please sign in to comment.