Afip 0.5.9 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/Afip/ctg.rb +7 -7
- data/lib/Afip/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd7001c3cd7dab808c9abae128267923fa1f9049
|
4
|
+
data.tar.gz: ababeda413e2d3c29297fe4fbf572fd967280eff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5658c86be52892c77366fa7fbb7141f64680145dad080e5626ad24df91280f81d49d04679175b7eccf621f519c3755cc46ae79bf177aa058bb072159e073ce2
|
7
|
+
data.tar.gz: b81a9ea959c919a8a83f5216e8f0146333777a4df8602fc06e386c068c001976a02c5703274b1a1fd3d9758f9e460e64da74c1289bd7d4b0d4442b8765a1e68c
|
data/Gemfile.lock
CHANGED
data/lib/Afip/ctg.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Afip
|
2
2
|
class CTG
|
3
3
|
attr_reader :client, :base_imp, :total
|
4
|
-
attr_accessor :ctg_num, :cp_num, :cod_especie, :cuit_canjeador,:rccc, :
|
4
|
+
attr_accessor :ctg_num, :cp_num, :cod_especie, :cuit_canjeador,:rccc, :cuit_destino, :cuit_destinatario, :localidad_origen, :localidad_destino,
|
5
5
|
:cosecha, :peso, :cuit_transportista, :horas, :patente, :km, :cuit_corredor, :remitente_com, :body
|
6
6
|
|
7
7
|
def initialize(attrs = {})
|
@@ -25,8 +25,8 @@ module Afip
|
|
25
25
|
@cod_especie = attrs[:cod_especie]
|
26
26
|
@cuit_canjeador = attrs[:cuit_canjeador]
|
27
27
|
@rccc = attrs[:rccc]
|
28
|
-
@
|
29
|
-
@
|
28
|
+
@cuit_destino = attrs[:cuit_destino]
|
29
|
+
@cuit_destinatario = attrs[:cuit_destinatario]
|
30
30
|
@localidad_origen = attrs[:localidad_origen]
|
31
31
|
@localidad_destino = attrs[:localidad_destino]
|
32
32
|
@cosecha = attrs[:cosecha]
|
@@ -61,16 +61,16 @@ module Afip
|
|
61
61
|
|
62
62
|
datos = {
|
63
63
|
"datosSolicitarCTGInicial" =>{
|
64
|
-
"cartaPorte" => @cp_num
|
64
|
+
"cartaPorte" => @cp_num, #long
|
65
65
|
"codigoEspecie" => @cod_especie, #int
|
66
66
|
#"cuitCanjeador" => @cuit_canjeador.to_i, #long
|
67
67
|
#"remitenteComercialComoCanjeador" => @rccc,
|
68
|
-
"cuitDestino" => @
|
69
|
-
"cuitDestinatario" => @
|
68
|
+
"cuitDestino" => @cuit_destino, #long
|
69
|
+
"cuitDestinatario" => @cuit_destinatario, #long
|
70
70
|
"codigoLocalidadOrigen" => @localidad_origen, #int
|
71
71
|
"codigoLocalidadDestino" => @localidad_destino, #int
|
72
72
|
"codigoCosecha" => @cosecha, #string
|
73
|
-
"pesoNeto" => @peso
|
73
|
+
"pesoNeto" => @peso, #long
|
74
74
|
#"cuitTransportista" => @cuit_transportista.to_i, #long
|
75
75
|
#"cantHoras" => @horas, #int
|
76
76
|
#"patente" => @patente, #string
|
data/lib/Afip/version.rb
CHANGED