fdis2 0.1.42 → 0.1.43

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: ae435c1c3da4180029aa8edbe1a0577e0c129fd87740debb18884f6b59dea68e
4
- data.tar.gz: c43a0e899438cab1e7c4b9b2076ce497b460d1964cc1a96cb7966e9e1fa85407
3
+ metadata.gz: 676119356ceecc9f727a6e99e6daee680ec0c4f200fcaabd2700690fd0fc0456
4
+ data.tar.gz: 949b9517ab867bc1cd1277ba6dd09e9b50023800a6a192270136c5b63c6553e1
5
5
  SHA512:
6
- metadata.gz: 2e56f5b68b3d42290b243e4015ecbbc1d81ea4bb36f8a037d637d4496a6f0e8e1220067355d53494890a6f7a03aa18a01f8e1747f1910ced2e545a0ab52fa061
7
- data.tar.gz: de7861420c2f2a5ed5a92631e6ad6ac61e6fd4d63d4f044df79fea95be586a3ff9aa20c0da5b073fd86e9227b7067573d22b7b487546030d6ff4548f6f2661c8
6
+ metadata.gz: 92b868ee678cc5c94568ea8ded15f2dbfa6308db95f667de757abe1c62e0928fe5a4300418eeb173e89ea14dbb6ad3fe2985fb971e51dd7efd542969d0a743e1
7
+ data.tar.gz: a5ea26e407571945017f27595b0b383b4a654300c132e8f815b8ea12e37ebc678e3c9bc3914ca7f9dcf8b1ad50ae82af6b18fbdaf2f35a4c6a1ebc6a719d53ed
@@ -39,7 +39,7 @@ module Fdis2
39
39
  end
40
40
  lines_total = params[:line_items].inject(0) {|sum, x| sum + x[:monto].to_f}
41
41
 
42
- puts "--- Fdis: Suma de line_items: #{lines_total}"
42
+ puts "--- Fdis: Suma de lineas: #{lines_total}"
43
43
 
44
44
  if (lines_total > params[:total].to_f)
45
45
  raise 'Error Fdis - la suma de los complementos de pago es mayor al total de la venta'
@@ -117,7 +117,7 @@ module Fdis2
117
117
 
118
118
 
119
119
  # totales
120
- total = params[:monto_pago].to_f
120
+ total = params[:monto_pago].to_f.abs
121
121
  iva_id = params.fetch(:tasa_iva, 16)
122
122
 
123
123
  pago_totales = xml.at_xpath("//pago20:Totales")
data/lib/fdis2/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fdis2
2
- VERSION = "0.1.42"
2
+ VERSION = "0.1.43"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fdis2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.42
4
+ version: 0.1.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel Padilla
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  requirements: []
140
- rubygems_version: 3.4.6
140
+ rubygems_version: 3.0.1
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Gem used to fetch the CFDIS Web API