fdis 0.1.11 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fdis/facturacion.rb +2 -3
- data/lib/fdis/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: 55cdd771437f58ffe637393722e309f104dc9304aaf7bf759aebe1e19632d329
|
4
|
+
data.tar.gz: 449f09143d7035310ca4e6fdfd4c93cbcb2d05b35c392ffa8b5c4ba692e3282f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1990467ff61ef7199a86530e40d5cad383ecfbe4b0bb93fee5227924c7805b07403f4cea8a4ea6e4689bcf2d331982a58b0a7a9e48de31cae872d5dbe5070e7
|
7
|
+
data.tar.gz: fe792241a47295b3cc7edc0706a467c53fb0de3e3d97638d8c969bf804c6ad40b81251c3af2fbcb05aadc773ef9d6359c4229f79daf9e71978b1da8894c87580
|
data/lib/fdis/facturacion.rb
CHANGED
@@ -67,7 +67,7 @@ module Fdis
|
|
67
67
|
<pago20:Pagos Version="2.0">
|
68
68
|
<pago20:Totales MontoTotalPagos="" />
|
69
69
|
|
70
|
-
<pago20:Pago FechaPago="" FormaDePagoP="01" MonedaP="MXN" Monto="">
|
70
|
+
<pago20:Pago FechaPago="" FormaDePagoP="01" MonedaP="MXN" TipoCambioP="1" Monto="">
|
71
71
|
</pago20:Pago>
|
72
72
|
|
73
73
|
</pago10:Pagos>
|
@@ -98,7 +98,7 @@ module Fdis
|
|
98
98
|
receptor = xml.at_xpath("//cfdi:Receptor")
|
99
99
|
receptor['Nombre'] = params[:receptor_razon].to_s
|
100
100
|
receptor['Rfc'] = params[:receptor_rfc].to_s
|
101
|
-
receptor['DomicilioFiscalReceptor'] = params
|
101
|
+
receptor['DomicilioFiscalReceptor'] = params.fetch(:receptor_cp, '47180')
|
102
102
|
receptor['RegimenFiscalReceptor'] = params.fetch(:receptor_regimen, '616')
|
103
103
|
|
104
104
|
|
@@ -148,7 +148,6 @@ module Fdis
|
|
148
148
|
child_pago_relacionado['Folio'] = line[:id].to_s
|
149
149
|
|
150
150
|
child_pago_relacionado['MonedaDR'] = line.fetch(:moneda, 'MXN')
|
151
|
-
child_pago_relacionado['MetodoDePagoDR'] = 'PPD'
|
152
151
|
child_pago_relacionado['NumParcialidad'] = (index + 1).to_s
|
153
152
|
|
154
153
|
child_pago_relacionado['ImpSaldoAnt'] = (saldo_anterior).round(2).to_s
|
data/lib/fdis/version.rb
CHANGED