formatos-febraban 0.2.11 → 0.2.12

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: a89438baefc29d36e45d9e01dbbf1e2e5b18370c
4
- data.tar.gz: caf4366c0b392a19de9c88bea1e309da0642766c
3
+ metadata.gz: d8a56ecfa6008cf4b3675c291a245c37602be9bd
4
+ data.tar.gz: d1c633d483697917042daf764d51e5589c07fd98
5
5
  SHA512:
6
- metadata.gz: bf508752583c2b5c48ade25d4af6d846de7aa2ce413392e5e4dba90683198ce6d5e184e93dbbd2bd3844fb28feca6c074aee6ddcdd30ead096bc1dfe38878948
7
- data.tar.gz: a413c7ddea6d010186003b01b0459e2e4992d2bee5a91ba9b31f1edb7dfbcab884d7d81638ae5c1ab94bd68d3ba111987174cd80ac20ce800857668a96193981
6
+ metadata.gz: cab3f57278d0543fac4239639e7abf7a18e950080857b6e458330fc7db41c3aaa210f16d8a0186106d0cd25707a3824a238380ec8f820b50a2dec59afce75a89
7
+ data.tar.gz: cd8ad0651a99430c0268ceda4fede66d2b016f11979c50f048d3d44ed83b89c4e1057a89764dbc965c7cca803484c1006f49cd56df9e659029f4c1b16da81269
@@ -1,5 +1,5 @@
1
1
  module Formatos
2
2
  module Febraban
3
- VERSION = "0.2.11"
3
+ VERSION = "0.2.12"
4
4
  end
5
5
  end
@@ -444,7 +444,9 @@ class Febraban150
444
444
 
445
445
  protected
446
446
  def calculate_valor_total
447
- self.get_section("E").map{|section| section.get_valor_debito }
447
+ self.get_section("E").inject(0) do |sum, cost|
448
+ sum += cost.value
449
+ end
448
450
  end
449
451
 
450
452
  #--------------------------------------------------------------------------------------
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.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - josé Ricardo Almeida