formatos-febraban 0.3.29 → 0.3.30

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6dfdaa2b5429efa05158f91ff2372fd7d30de833
4
- data.tar.gz: ce655ac266439afd7db56ac549fbf1187f6142d4
3
+ metadata.gz: 2f17254a1aaa7fe0be394bc79a15140e58700047
4
+ data.tar.gz: 914fbdcc0f56dc0630892322f87ad2ca0f8eef05
5
5
  SHA512:
6
- metadata.gz: 77f69d3e0aadb43fd5b16772df77ff9e5362cef01a9474e035a77a4550b4778cc7dcb2e21f116daa8b0f45a0ff575ca25f7b931493cc5fb8f01c8a876f32b1b1
7
- data.tar.gz: da819e7ae9fd2616ed9ab6c185c4e7ec5178c14349ae19b2e546051bb24cb5b14e17853de6a7add312527e35b9d9d7fe75a3f9499b0b33cd21559502fa4692a5
6
+ metadata.gz: d73898ea69be67f693e11720322a38a33a5c642f1945abf539427d12da19e334de66a7019cdefe203ed4939826ed7e9d11464551f275ba784c7eaee27d79bede
7
+ data.tar.gz: bc450d16bad6ff1ecc95795b1140b133b132dda3f9a9e2eab5b352f5034b1c1084a0974453a00f4948908ce7f600176fa3b47f6da3c5792a5383b50eed5fa188
@@ -1,5 +1,5 @@
1
1
  module Formatos
2
2
  module Febraban
3
- VERSION = '0.3.29'
3
+ VERSION = '0.3.30'
4
4
  end
5
5
  end
@@ -288,7 +288,12 @@ class Febraban150E < FormatSection
288
288
 
289
289
  def set_reservado reservado
290
290
  reservado = reservado.to_s
291
- self.set_section_value(10, reservado)
291
+ case @versao
292
+ when '04'
293
+ self.set_section_value(8, reservado)
294
+ when '05'
295
+ self.set_section_value(10, reservado)
296
+ end
292
297
  end
293
298
 
294
299
  def set_cod_movimento cod_movimento
@@ -335,7 +335,12 @@ class Febraban150F < FormatSection
335
335
 
336
336
  def set_reservado reservado
337
337
  reservado = reservado.to_s
338
- self.set_section_value(10, reservado)
338
+ case @versao
339
+ when '04'
340
+ self.set_section_value(8, reservado)
341
+ when '05'
342
+ self.set_section_value(10, reservado)
343
+ end
339
344
  end
340
345
 
341
346
  def set_cod_movimento cod_movimento
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formatos-febraban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.29
4
+ version: 0.3.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Ricardo Almeida