Skip to content

Commit 533b870

Browse files
Fix segments comments
1 parent 44ae1f4 commit 533b870

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

febraban/cnab240/itau/sispag/payment/segmentJ.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ def __init__(self):
1313

1414
def defaultValues(self):
1515
structs = [
16-
( 7, 8, 1, numeric, "3"), # TIPO DE REGISTRO
17-
( 8, 13, 5, numeric, 1), # INDEX DO REGISTRO
18-
( 13, 14, 1, alphaNumeric, "J"), # CÓDIGO DE SEGMENTO
19-
( 14, 17, 3, numeric, "000"), # TIPO DE MOVIMENTO
16+
( 7, 8, 1, numeric, "3"), # Tipo de Registro
17+
( 8, 13, 5, numeric, 1), # Index de Registro
18+
( 13, 14, 1, alphaNumeric, "J"), # Código de Segmento
19+
( 14, 17, 3, numeric, "0"), # Tipo de Movimento
2020
(144, 152, 8, numeric, date.today().strftime("%d%m%Y")),
2121
(114, 144, 23, numeric, "0"),
22-
(167, 182, 15, numeric, "0"),
22+
(167, 182, 15, numeric, "0"),
2323
]
2424
self.content = Row.setStructs(structs=structs, content=self.content)
2525

@@ -37,9 +37,9 @@ def setBarCode(self, barCode):
3737
( 22, 26, 4, numeric, barCode.dueFactor),
3838
( 26, 36, 10, numeric, barCode.amount),
3939
( 36, 61, 25, numeric, barCode.freeField),
40-
( 99, 114, 15, numeric, barCode.amount), # VALOR NOMINAL DO TÍTULO
41-
(152, 167, 15, numeric, barCode.amount), # VALOR DO PAGAMENTO
42-
( 91, 99, 8, numeric, barCode.dueDate.strftime("%d%m%Y")), # DATA DE VENCIMENTO
40+
( 91, 99, 8, numeric, barCode.dueDate.strftime("%d%m%Y")), # Data de Vencimento
41+
( 99, 114, 15, numeric, barCode.amount), # Valor Nominal do Título
42+
(152, 167, 15, numeric, barCode.amount), # Valor do Pagamento
4343
]
4444
self.content = Row.setStructs(structs=structs, content=self.content)
4545

febraban/cnab240/itau/sispag/payment/segmentJ52.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ def __init__(self):
1212

1313
def defaultValues(self):
1414
structs = [
15-
( 7, 8, 1, numeric, "3"), # TIPO DE REGISTRO
16-
( 8, 13, 5, numeric, "1"), # INDEX DO REGISTRO
17-
(13, 14, 1, alphaNumeric, "J"), # CÓDIGO DE SEGMENTO
18-
(14, 17, 3, numeric, "0"), # TIPO DE MOVIMENTO
19-
(17, 19, 2, numeric, "52"), # IDENTIFICAÇÃO DO REGISTRO OPCIONAL
15+
( 7, 8, 1, numeric, "3"), # Tipo de Registro
16+
( 8, 13, 5, numeric, "1"), # Index de Registro
17+
(13, 14, 1, alphaNumeric, "J"), # Código de Segmento
18+
(14, 17, 3, numeric, "0"), # Tipo de Movimento
19+
(17, 19, 2, numeric, "52"),
2020
(75, 91, 16, numeric, "0"),
2121
(131, 147, 16, numeric, "0"),
2222
]

0 commit comments

Comments
 (0)