fdis 0.1.8 → 0.1.9
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 +5 -1
- 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: da265a50596053c4c14e1aed4af136a5371cba9de53a1dfc4908c442704bc603
|
4
|
+
data.tar.gz: de8b901323cf697b0837d238218cd16d49eee187fded0ec31e0fbf11462b2f03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5358051748c057cefc87940f0216847809417064a4040efc8781a20873fcef137a38e156727b3c7e692e819dc218cb7e7f86affc6e8812d9a20eb14f74fdf1d7
|
7
|
+
data.tar.gz: acc4308862cd5f24e2be8d57acd6409bc64d7340e1ee6dfa5e578ff62e2c384a6960aaf07c469e80446fadcd1e054d52801c02052786e798e4036b0c35798fbf
|
data/lib/fdis/facturacion.rb
CHANGED
@@ -557,7 +557,11 @@ module Fdis
|
|
557
557
|
receptor['Rfc'] = params.fetch(:receptor_rfc, '')
|
558
558
|
receptor['Nombre'] = params.fetch(:receptor_razon, '')
|
559
559
|
receptor['DomicilioFiscalReceptor'] = params.fetch(:receptor_cp, '47180')
|
560
|
-
|
560
|
+
if params[:receptor_razon] == 'XAXX010101000'
|
561
|
+
receptor['UsoCFDI'] = 'S01'
|
562
|
+
else
|
563
|
+
receptor['UsoCFDI'] = params.fetch(:uso_cfdi, 'G03')
|
564
|
+
end
|
561
565
|
receptor['RegimenFiscalReceptor'] = params.fetch(:receptor_regimen, '616')
|
562
566
|
|
563
567
|
# retencion_iva = params.fetch(:retencion_iva, 0)
|
data/lib/fdis/version.rb
CHANGED