fdis2 0.1.40 → 0.1.41

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: 94ecfe731e35116824283a3f33438de424c95d9914ebdd7adbac10b2aaf9b972
4
- data.tar.gz: 065540e3da5151af597e53555242ff0c19155d6c5e2e8ca86beecd58006d927a
3
+ metadata.gz: 10edc18a3f26753f2c97b888b11394ba9b0c578a036941c01de815ea0bc20646
4
+ data.tar.gz: 20dfad14c6840890e9c4d4458f2081f08f0e61fb09e5bcd0a88b3c8517dec8a4
5
5
  SHA512:
6
- metadata.gz: f1e32de513e7300514feb165ab325420cb019b0b784ddd2466afb06843b2e5fc0ace9648e826d4a35fb904715d0209053410a6943e2f0cf8f3b305794baff2c1
7
- data.tar.gz: ab7ef2360350a3694033a82b8cab4334b91fa89dd1cd6d83acea561a8b364cfb4728447acebc62c2c19809b75241c5ca69bcbb77aa8e6901f663e55900def677
6
+ metadata.gz: 6126ffc62202c8e4c5a58db3ad884de8e679cc18c950170883a2b3837ebd9d9e7a22fc4a00d02bca4c21460154caf6735fbdc75ef20b24d62afec4b63795337d
7
+ data.tar.gz: 6dc29fd8d454c63e68907df0eea5a3107db9777c7c6c2e969c6b7d8abb11edbdea3a6a8d6de4fa8a6ae411b6d93bec0adf7df3a14b236526a15afdac3dd69e2e
@@ -121,7 +121,7 @@ module Fdis2
121
121
  iva_id = params.fetch(:tasa_iva, 16)
122
122
 
123
123
  pago_totales = xml.at_xpath("//pago20:Totales")
124
- pago_totales['MontoTotalPagos'] = total.round(2).to_s # total
124
+ pago_totales['MontoTotalPagos'] = total.round(4).to_s # total
125
125
 
126
126
 
127
127
 
@@ -130,15 +130,15 @@ module Fdis2
130
130
  subtotal = total
131
131
  iva = 0.00
132
132
 
133
- pago_totales['TotalTrasladosBaseIVA0'] = subtotal.round(2).to_s # subtotal
134
- pago_totales['TotalTrasladosImpuestoIVA0'] = iva.round(2).to_s # iva
133
+ pago_totales['TotalTrasladosBaseIVA0'] = subtotal.round(4).to_s # subtotal
134
+ pago_totales['TotalTrasladosImpuestoIVA0'] = iva.round(4).to_s # iva
135
135
 
136
136
  else
137
137
  subtotal = total / 1.16
138
138
  iva = total - subtotal
139
139
 
140
- pago_totales['TotalTrasladosBaseIVA16'] = subtotal.round(2).to_s # subtotal
141
- pago_totales['TotalTrasladosImpuestoIVA16'] = iva.round(2).to_s # iva
140
+ pago_totales['TotalTrasladosBaseIVA16'] = subtotal.round(4).to_s # subtotal
141
+ pago_totales['TotalTrasladosImpuestoIVA16'] = iva.round(4).to_s # iva
142
142
  end
143
143
 
144
144
 
data/lib/fdis2/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fdis2
2
- VERSION = "0.1.40"
2
+ VERSION = "0.1.41"
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.40
4
+ version: 0.1.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel Padilla