formatos-febraban 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fed384d3ac06c00b3d2063d1b8257b2ac067da6
|
4
|
+
data.tar.gz: 81ecd08a7e894602ac4d6509f44f6e662ce806e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb6042fe20045334640b5d02ecca8d925bb1f7cfb893a414f10af8422bc01d418ef3baa234598ad0f6cdf6c3de314bfdbe13f055e0e48013305b0d9cbd39af5f
|
7
|
+
data.tar.gz: 1c121caa3e2b45a7ee586ff009502a36253edae04bb5a2d76d3627bdc56af8dd67a8bfad978ce39511670247bc17e77e03394e9b4e6bba25fa7e37f2577e57f3
|
@@ -84,7 +84,7 @@ class Febraban150
|
|
84
84
|
section.set_data_geracao data.strftime("%Y%m%d")
|
85
85
|
section.set_numero_sequencial numero_sequencial
|
86
86
|
section.set_versao_layout Febraban150::VERSAO
|
87
|
-
section.set_identificacao_servico
|
87
|
+
section.set_identificacao_servico Febraban150A::ID_SERVICO
|
88
88
|
section.set_reservado ""
|
89
89
|
|
90
90
|
self.add_section_from_business section
|
@@ -5,21 +5,23 @@
|
|
5
5
|
class Febraban150A < FormatSection
|
6
6
|
require 'date'
|
7
7
|
|
8
|
+
ID_SERVICO = "DÉBITO AUTOMÁTICO"
|
9
|
+
|
8
10
|
def initialize master
|
9
11
|
super(master, true, true, false)
|
10
12
|
|
11
13
|
@section = Section.new({
|
12
|
-
0 => Position.new(1, 1, false, "A", true),
|
13
|
-
1 => Position.new(2, 1, true),
|
14
|
-
2 => Position.new(3, 20, false),
|
15
|
-
3 => Position.new(4, 20, false),
|
16
|
-
4 => Position.new(5, 3, true),
|
17
|
-
5 => Position.new(6, 20, false),
|
18
|
-
6 => Position.new(7, 8, true),
|
19
|
-
7 => Position.new(8, 6, true),
|
20
|
-
8 => Position.new(9, 2, true, 5),
|
21
|
-
9 => Position.new(10, 17, false,
|
22
|
-
10 => Position.new(11, 52, false),
|
14
|
+
0 => Position.new(1, 1, false, "A", true), # Código do Registro
|
15
|
+
1 => Position.new(2, 1, true), # Código Remessa (1-Remessa, 2-Retorno)
|
16
|
+
2 => Position.new(3, 20, false), # Código de ID enviado pelo Banco
|
17
|
+
3 => Position.new(4, 20, false), # Nome da Empresa
|
18
|
+
4 => Position.new(5, 3, true), # Código do Banco
|
19
|
+
5 => Position.new(6, 20, false), # Nome do Banco
|
20
|
+
6 => Position.new(7, 8, true), # Data de Geração de Arquivo
|
21
|
+
7 => Position.new(8, 6, true), # Número Sequencial do Arquivo
|
22
|
+
8 => Position.new(9, 2, true, 5), # Versão do Layout (5, desde 05.05.2008)
|
23
|
+
9 => Position.new(10, 17, false, Febraban150A::ID_SERVICO), # Identificação ("DÉBITO AUTOMÁTICO")
|
24
|
+
10 => Position.new(11, 52, false), # Reservado pelo Sistema
|
23
25
|
})
|
24
26
|
end
|
25
27
|
|