sw_fac 0.3.57 → 0.3.58

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
  SHA256:
3
- metadata.gz: 2b42c257daa8d42e001986d905ffab338db35601a8ddc082815ce3a9000440d2
4
- data.tar.gz: f513ba041875e90d46cbc9ca47e57a4f3d216e669fa814fadb5539677094e050
3
+ metadata.gz: 053a99ed90bd5eb61ab4616e19fd44ab13b314ceed21b85bfd4cbd5e62463fd4
4
+ data.tar.gz: af3aba5ee6cf0b770e6d9abcb451c9ed580981e6e78fd3961b09848c18c3ebab
5
5
  SHA512:
6
- metadata.gz: 69ecc08be4f9d4f5c97199b964085f6574a571271806c0ef7ff7b428c72072ab805ace8f8e1641cab06383c0befeac7b95fb1ed97a2a24383e5839fe0ea82c8c
7
- data.tar.gz: 2140988d0cd6d7a09a58e80cbc10224c7385ff87196b9aa35d39665be54a9a9535ab47f21206f67593ae9ecb2a2c5cb64154d92bfdc9e1fa5637b3fbf5c39425
6
+ metadata.gz: 8eb95930bb7aedad4aefb38cbe09a5ae10926d37ea28b33b125d2e9cdd0c7f51fbdfa45daeba94d24591e1dd556349258ef1adf04b9a7eb935b55b827149b585
7
+ data.tar.gz: 263a17bdd4b379cc40c13a7b4a288652f5186a895cea66687e9061a6ed46d552824a0e1773a2c1e5ec791c164f11d5c71f934cceb1467abc0ddd065542bd5cd2
@@ -30,9 +30,9 @@ module SwFac
30
30
  end
31
31
  lines_total = params[:line_items].inject(0) {|sum, x| sum + x[:monto].to_f}
32
32
 
33
- puts "-- Suma de line_items: #{lines_total}"
33
+ puts "-- Suma de line_items: #{lines_total.round(2)}"
34
34
 
35
- if (lines_total > params[:total].to_f)
35
+ if (lines_total.round(2) > params[:total].to_f)
36
36
  raise 'Error SW - la suma de los complementos de pago es mayor al total reportado'
37
37
  end
38
38
 
@@ -1,3 +1,3 @@
1
1
  module SwFac
2
- VERSION = "0.3.57"
3
- end
2
+ VERSION = "0.3.58"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sw_fac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.57
4
+ version: 0.3.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel Padilla