fdis 0.1.7 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af3f9899b4bb678e8a054349e34ca808e6533b8797a2bba13aabb45b54133e6c
4
- data.tar.gz: 783b74699c9546a2d9598d1c497bea8826d889f7866e5cbaa51928b5fd150656
3
+ metadata.gz: da265a50596053c4c14e1aed4af136a5371cba9de53a1dfc4908c442704bc603
4
+ data.tar.gz: de8b901323cf697b0837d238218cd16d49eee187fded0ec31e0fbf11462b2f03
5
5
  SHA512:
6
- metadata.gz: 241b331dc599408fc797ebde4353338b55c9083253f9b66202113212b98f08c1605381e7af1c8e38a940e7372bff17ee7a31a42dace0b7fb017a18395347de14
7
- data.tar.gz: 84f07a0fdb7285a8d79e72e802a790726ee551fe1a911e5b53789533bfade46902e5f29881b59ec2d3dacb8540e2265a2f4ddcbb9c6a1ea933f432cfb610206d
6
+ metadata.gz: 5358051748c057cefc87940f0216847809417064a4040efc8781a20873fcef137a38e156727b3c7e692e819dc218cb7e7f86affc6e8812d9a20eb14f74fdf1d7
7
+ data.tar.gz: acc4308862cd5f24e2be8d57acd6409bc64d7340e1ee6dfa5e578ff62e2c384a6960aaf07c469e80446fadcd1e054d52801c02052786e798e4036b0c35798fbf
@@ -99,7 +99,7 @@ module Fdis
99
99
  receptor['Nombre'] = params[:receptor_razon].to_s
100
100
  receptor['Rfc'] = params[:receptor_rfc].to_s
101
101
  receptor['DomicilioFiscalReceptor'] = params[:receptor_cp].to_s
102
- receptor['RegimenFiscalReceptor'] = params.fetch(:receptor_regimen, 'S01')
102
+ receptor['RegimenFiscalReceptor'] = params.fetch(:receptor_regimen, '616')
103
103
 
104
104
 
105
105
  # totales
@@ -557,8 +557,12 @@ 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
- receptor['UsoCFDI'] = params.fetch(:uso_cfdi, 'G03')
561
- receptor['RegimenFiscalReceptor'] = params.fetch(:receptor_regimen, 'S01')
560
+ if params[:receptor_razon] == 'XAXX010101000'
561
+ receptor['UsoCFDI'] = 'S01'
562
+ else
563
+ receptor['UsoCFDI'] = params.fetch(:uso_cfdi, 'G03')
564
+ end
565
+ receptor['RegimenFiscalReceptor'] = params.fetch(:receptor_regimen, '616')
562
566
 
563
567
  # retencion_iva = params.fetch(:retencion_iva, 0)
564
568
 
data/lib/fdis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fdis
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fdis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel Padilla