Afip 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb24a42c9e3765d1426ed430f3f362fd85e3e4f1fcd140c25853e21e7778d135
4
- data.tar.gz: b38d87a2ba84d56a7e7b36a46594c219fa99d19eeb78bbc4cad51cbe6663f131
3
+ metadata.gz: 29809513e3e57e57ff1703f77e64275bd399d8af0bf088671e25e4ea472ea822
4
+ data.tar.gz: a31ef2e85fb90684258a001f2c501cb61a216b9c084acd10308511e709b17f9e
5
5
  SHA512:
6
- metadata.gz: 420e8c988d203ff2df26d116d3cd9e35d9fc8159310fa3185e32265f0f8c03d081d161e8e00e1a6eeacfd860d868122913229297455309646d428b962717c9c3
7
- data.tar.gz: fdcdf0fe5d6611b4c7cef4584a7b0329f4c999d873faf8ac083b789476f7736a369c8bad22cf26db23ee90cb08744727b93c26c605401cbb0485398e98c923f9
6
+ metadata.gz: eff5ead1ad85513c786d120b511199bf920d6bfbc407dccda803d363c1c6005e424d4bd73759d10fa7b16e0d74e9aa5126d8370a43613b2191856d84287f6195
7
+ data.tar.gz: 3d8e7646c4cb513132ff9726860b71242251e462d263529190c9e6dfd0818ef634231e402bd15bf3400833fc30540a7b62a8ec72b61145ac9dede34dc6f41d6b
Binary file
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Afip (1.1.0)
4
+ Afip (1.1.2)
5
5
  httpi
6
6
  savon
7
7
 
@@ -18,10 +18,10 @@ GEM
18
18
  rack
19
19
  socksify
20
20
  mini_portile2 (2.4.0)
21
- nokogiri (1.10.2)
21
+ nokogiri (1.10.3)
22
22
  mini_portile2 (~> 2.4.0)
23
23
  nori (2.6.0)
24
- rack (2.0.6)
24
+ rack (2.0.7)
25
25
  rake (10.5.0)
26
26
  savon (2.12.0)
27
27
  akami (~> 1.2)
@@ -7,14 +7,14 @@ module Afip
7
7
 
8
8
  def initialize(attrs={})
9
9
  @client = Bill.set_client
10
- @sale_point = attrs[:sale_point]
11
- @body = { "Auth" => Afip.auth_hash }
12
- @net = attrs[:net] || 0.0
10
+ @sale_point = attrs[:sale_point]
11
+ @body = { "Auth" => Afip.auth_hash }
12
+ @net = attrs[:net] || 0.0
13
13
  @documento = attrs[:documento] || Afip.default_documento
14
- @moneda = attrs[:moneda] || Afip.default_moneda
14
+ @moneda = attrs[:moneda] || Afip.default_moneda
15
15
  @iva_cond = attrs[:iva_cond]
16
16
  @concepto = attrs[:concepto] || Afip.default_concepto
17
- @ivas = attrs[:ivas] || Array.new # [ 1, 100.00, 10.50 ], [ 2, 100.00, 21.00 ]
17
+ @ivas = attrs[:ivas] || Array.new # [ 1, 100.00, 10.50 ], [ 2, 100.00, 21.00 ]
18
18
  @fecha_emision = attrs[:fch_emision] || Time.new
19
19
  @fch_serv_hasta = attrs[:fch_serv_hasta]
20
20
  @fch_serv_desde = attrs[:fch_serv_desde]
@@ -22,10 +22,10 @@ module Afip
22
22
  @cbte_type = attrs[:cbte_type]
23
23
  @cant_reg = attrs[:cant_reg] || 1
24
24
  @no_gravado = attrs[:no_gravado] || 0.0
25
- @gravado = attrs[:gravado] || 0.0
26
- @exento = attrs[:exento] || 0.0
25
+ @gravado = attrs[:gravado] || 0.0
26
+ @exento = attrs[:exento] || 0.0
27
27
  @otros_imp = attrs[:otros_imp] || 0.0
28
- @total = net.to_f + iva_sum.to_f + exento.to_f + no_gravado.to_f + otros_imp.to_f
28
+ @total = net.to_f + iva_sum.to_f + exento.to_f + no_gravado.to_f + otros_imp.to_f
29
29
  @tributos = attrs[:tributos] || []
30
30
  end
31
31
 
@@ -47,19 +47,29 @@ module Afip
47
47
  :nota_debito_c => "12"
48
48
  }
49
49
  }
50
-
50
+ #IVA Sujeto Exento, Proveedor del Exterior, Cliente del Exterior, IVA Liberado - Ley Nº 19.640, Monotributista Social, IVA No Alcanzado
51
51
  AVAILABLE_TYPES = {
52
52
  :responsable_inscripto => {
53
53
  :responsable_inscripto => ["01", "02", "03"],
54
54
  :consumidor_final => ["06", "07", "08"],
55
55
  :exento => ["06", "07", "08"],
56
56
  :responsable_monotributo => ["06", "07", "08"],
57
+ :iva_sujeto_exento => ["01", "02", "03"],
58
+ :proveedor_del_exterior => ["01", "02", "03"],
59
+ :cliente_del_exterior => ["01", "02", "03"],
60
+ :iva_liberado => ["01", "02", "03"]
61
+ :iva_no_alcanzado => ["01", "02", "03"]
57
62
  },
58
63
  :responsable_monotributo => {
59
64
  :responsable_inscripto => ["11", "12", "13"],
60
65
  :consumidor_final => ["11", "12", "13"],
61
66
  :exento => ["11", "12", "13"],
62
- :responsable_monotributo => ["11", "12", "13"]
67
+ :responsable_monotributo => ["11", "12", "13"],
68
+ :iva_sujeto_exento => ["11", "12", "13"],
69
+ :proveedor_del_exterior => ["11", "12", "13"],
70
+ :cliente_del_exterior => ["11", "12", "13"],
71
+ :iva_liberado => ["11", "12", "13"]
72
+ :iva_no_alcanzado => ["11", "12", "13"]
63
73
  }
64
74
  }
65
75
 
@@ -1,3 +1,3 @@
1
1
  module Afip
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Afip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo A. Díaz Martínez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-29 00:00:00.000000000 Z
11
+ date: 2019-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -77,6 +77,7 @@ files:
77
77
  - Afip-0.8.3.gem
78
78
  - Afip-0.8.4.gem
79
79
  - Afip-1.0.0.gem
80
+ - Afip-1.0.6.gem
80
81
  - Afip.gemspec
81
82
  - Gemfile
82
83
  - Gemfile.lock