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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a4d7499aec20e1f0fcbebe1daf7ca9f6ac4cadc6b3162c7429efc11369cc48c
4
- data.tar.gz: a6cda025cc360aa35f20887b78ca42e1e8325d12185cfce84f2133b0556a2d8a
3
+ metadata.gz: da265a50596053c4c14e1aed4af136a5371cba9de53a1dfc4908c442704bc603
4
+ data.tar.gz: de8b901323cf697b0837d238218cd16d49eee187fded0ec31e0fbf11462b2f03
5
5
  SHA512:
6
- metadata.gz: 40818994252d22471ca584b427d57fd66bd246d9b4194ba4874f6d143d0067dcf4f0f344b01615d0d269797c21cf899c0865f5d4b9d503a9cf9094110b138d08
7
- data.tar.gz: 7180812acb9da3d31b4bb7baa7ecba3640673a03a971e3671b6336d0159b50a4b3c16450588e0cefeac46666cd935cfaae71066d5f4f203a19c7ecbac9d0b5b1
6
+ metadata.gz: 5358051748c057cefc87940f0216847809417064a4040efc8781a20873fcef137a38e156727b3c7e692e819dc218cb7e7f86affc6e8812d9a20eb14f74fdf1d7
7
+ data.tar.gz: acc4308862cd5f24e2be8d57acd6409bc64d7340e1ee6dfa5e578ff62e2c384a6960aaf07c469e80446fadcd1e054d52801c02052786e798e4036b0c35798fbf
@@ -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
- receptor['UsoCFDI'] = params.fetch(:uso_cfdi, 'G03')
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
@@ -1,3 +1,3 @@
1
1
  module Fdis
2
- VERSION = "0.1.8"
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.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel Padilla