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 +4 -4
- data/lib/fdis2/facturacion.rb +5 -5
- data/lib/fdis2/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10edc18a3f26753f2c97b888b11394ba9b0c578a036941c01de815ea0bc20646
|
|
4
|
+
data.tar.gz: 20dfad14c6840890e9c4d4458f2081f08f0e61fb09e5bcd0a88b3c8517dec8a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6126ffc62202c8e4c5a58db3ad884de8e679cc18c950170883a2b3837ebd9d9e7a22fc4a00d02bca4c21460154caf6735fbdc75ef20b24d62afec4b63795337d
|
|
7
|
+
data.tar.gz: 6dc29fd8d454c63e68907df0eea5a3107db9777c7c6c2e969c6b7d8abb11edbdea3a6a8d6de4fa8a6ae411b6d93bec0adf7df3a14b236526a15afdac3dd69e2e
|
data/lib/fdis2/facturacion.rb
CHANGED
|
@@ -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(
|
|
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(
|
|
134
|
-
pago_totales['TotalTrasladosImpuestoIVA0'] = iva.round(
|
|
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(
|
|
141
|
-
pago_totales['TotalTrasladosImpuestoIVA16'] = iva.round(
|
|
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