Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyboleto/bank/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'001': 'bancodobrasil.BoletoBB',
'041': 'banrisul.BoletoBanrisul',
'237': 'bradesco.BoletoBradesco',
'104': 'caixa.BoletoCaixa',
'104': 'caixa_sigcb.BoletoCaixaSigcb',
'399': 'hsbc.BoletoHsbc',
'341': 'itau.BoletoItau',
'356': 'real.BoletoReal',
Expand Down
6 changes: 3 additions & 3 deletions pyboleto/bank/caixa_sigcb.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class BoletoCaixaSigcb(BoletoData):
'''

agencia_cedente = CustomProperty('agencia_cedente', 4)
conta_cedente = CustomProperty('conta_cedente', 6)
convenio = CustomProperty('convenio', 6)
nosso_numero = CustomProperty('nosso_numero', 17)

def __init__(self):
Expand All @@ -23,8 +23,8 @@ def __init__(self):
@property
def campo_livre(self): # 24 digits
content = "%6s%1s%3s%1s%3s%1s%9s" % (
self.conta_cedente.split('-')[0],
self.modulo11(self.conta_cedente.split('-')[0]),
self.convenio.split('-')[0],
self.modulo11(self.convenio.split('-')[0]),
self.nosso_numero[2:5],
self.nosso_numero[0:1],
self.nosso_numero[5:8],
Expand Down