fdis 0.1.4 → 0.1.6
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 +7 -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: 5448f6ba3adf782da20155ebfa218925bf804f0aba90721b4bfaf6d89182ae02
|
4
|
+
data.tar.gz: 85993c42a37eaf3e0e99ef0a255db5662ba7259c21d39529ce27b236154efcf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6df980d5aaeeec6ca535b9fe6360b94ac2c50487403ba980bd416b6e9e1567f9bc4d9eb56c323defb842007e5a0bd5828275773002657c3f4b03f57fb0392282
|
7
|
+
data.tar.gz: 68038c091abdf8068974bb62accc0bae2fced4f0e19a3baf723ef2ba621f3a2292247633e43cf26a1dd06153538059e94ecb8c7811f2c32510ec601acb208853
|
data/lib/fdis/facturacion.rb
CHANGED
@@ -99,7 +99,8 @@ 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
|
102
|
+
receptor['RegimenFiscalReceptor'] = params.fetch(:receptor_regimen, 'S01')
|
103
|
+
|
103
104
|
|
104
105
|
# totales
|
105
106
|
total = params[:total].to_f
|
@@ -485,6 +486,7 @@ module Fdis
|
|
485
486
|
# receptor_cp: '47180',
|
486
487
|
# receptor_razon: 'Car zone',
|
487
488
|
# receptor_rfc: '',
|
489
|
+
# receptor_regimen: '',
|
488
490
|
# uso_cfdi: 'G03',
|
489
491
|
# time: "%Y-%m-%dT%H:%M:%S",
|
490
492
|
# line_items: [
|
@@ -556,6 +558,7 @@ module Fdis
|
|
556
558
|
receptor['Nombre'] = params.fetch(:receptor_razon, '')
|
557
559
|
receptor['DomicilioFiscalReceptor'] = params.fetch(:receptor_cp, '47180')
|
558
560
|
receptor['UsoCFDI'] = params.fetch(:uso_cfdi, 'G03')
|
561
|
+
receptor['RegimenFiscalReceptor'] = params.fetch(:receptor_regimen, 'S01')
|
559
562
|
|
560
563
|
# retencion_iva = params.fetch(:retencion_iva, 0)
|
561
564
|
|
@@ -774,6 +777,9 @@ module Fdis
|
|
774
777
|
http.request(request)
|
775
778
|
end
|
776
779
|
|
780
|
+
puts "---- Fdis: request"
|
781
|
+
puts "-- body: #{request.body} --"
|
782
|
+
|
777
783
|
puts "---- Fdis: Respuesta"
|
778
784
|
puts "-- Codigo: #{json_response.code} --"
|
779
785
|
puts "-- Mensaje: #{json_response.message} --"
|
data/lib/fdis/version.rb
CHANGED