formatos-febraban 0.2.15 → 0.2.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/formatos/febraban/version.rb +1 -1
- data/lib/formatos/febraban150/febraban_150.rb +5 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a025112d7380114f666b684779a1c8b50e5b4ad5
|
4
|
+
data.tar.gz: b9b42064d754200d745434eb2c3d83cd76ee3f89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3f7049ed3dcd5d946c555154ee40249d2e32a4da0eb8237460ae208097388f7e030ceb1c640deb8fd366106fa2d46e2a379d6b9259b6812dcbeb7925d4a13f9
|
7
|
+
data.tar.gz: 78d47d3a724fd0dcca3d897d41eafe897f490a0d287f12c83d81e500513d5b305243184249b3c57547bbd0842d42cf8832309a6f402b05cef92d7f2bf18229b5
|
@@ -2,7 +2,7 @@
|
|
2
2
|
class Febraban150
|
3
3
|
require 'date'
|
4
4
|
|
5
|
-
|
5
|
+
VERSAO = "05"
|
6
6
|
|
7
7
|
# Carrega todas as dependências de Layout
|
8
8
|
Dir[File.join(File.dirname(__FILE__), '../..', 'base', '**/*.rb')].sort.each do |file|
|
@@ -419,11 +419,11 @@ class Febraban150
|
|
419
419
|
end
|
420
420
|
|
421
421
|
def layout_banco?
|
422
|
-
self.
|
422
|
+
self.get_header.get_codigo_remessa == 2
|
423
423
|
end
|
424
424
|
|
425
425
|
def layout_empresa?
|
426
|
-
self.
|
426
|
+
self.get_header.get_codigo_remessa == 1
|
427
427
|
end
|
428
428
|
|
429
429
|
#--------------------------------------------------------------------------------------
|
@@ -435,10 +435,8 @@ class Febraban150
|
|
435
435
|
raise "Layout atual inválido!" unless self.is_valid?
|
436
436
|
|
437
437
|
if path.end_with?("/")
|
438
|
-
header =
|
439
|
-
|
440
|
-
|
441
|
-
path += "#{self.get_header.get_data_geracao}_#{self.get_header.get_codigo_remessa}_#{self.get_header.get_codigo_banco}_#{self.versao_layout}.bat"
|
438
|
+
header = this.get_header
|
439
|
+
path += "#{header.get_data_geracao}_#{header.get_codigo_remessa}_#{header.get_codigo_banco}_#{self.versao_layout}.bat"
|
442
440
|
end
|
443
441
|
|
444
442
|
File.open(path, 'w') { |f| f.puts(self.to_s) }
|