fdis 0.1.11 → 0.1.12
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 +1 -2
- 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: 32c356fa5da7b7e877ea46e3e996f9e4fa1b31be3216fb641948165599a0d15e
|
4
|
+
data.tar.gz: 637f19bc950c24de4cb262a90512a589c9bcb1a1b315d60e36ac09f7dfea933d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fec084e5bfe1bb35bbd61d44eeb22a0eb69d7542d88ac13bf401a60f9161b9bba39ef095ddb8f1fbc5e0c58628dc3b4b3ae8f06fb7cf7e79767285546076e9c
|
7
|
+
data.tar.gz: 7a4038d5863a756d120ec4483f28e4ffc81cb6dbf41ce069d383b4f378b7e3c592cea365e3ca7d21872bbd61db69c282855c3790dfe3902e819cf886a45bd275
|
data/lib/fdis/facturacion.rb
CHANGED
@@ -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