Afip 0.8.8 → 0.8.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: e638ff3e118035bf03e12288830d1f483324e1ff35add99a53a1cd73aebea6b2
4
- data.tar.gz: 85159b29102db44d6976f7becc4c3f09c6e9e33a2200b3af705521c894fda1f3
3
+ metadata.gz: 924310054fc7b497880c08391153b5b83cffc9aba510da8c8852f5615f680541
4
+ data.tar.gz: 23e61dabcb664858d18438ac01460e1260160f5c05b76be7f89c1f66c21dbc37
5
5
  SHA512:
6
- metadata.gz: c26b2bc7dc4b89416f2491fbdd31c6df19944f8741a64775b56add16e1d95d9ae5824d3f409eb75da2df69b6c820087c0ea532c8e426cd0263a2dbca439937a4
7
- data.tar.gz: 8d151093f45a682d8deda68b2d7555ae571aac0fdcdc2c6122cb72adc12a1e164253c248bac3cb59b520fc7f97c92d7863c82eb30490e10f5d7e07466953b3e3
6
+ metadata.gz: e72ef39e18c35c36b27b10153cb4919813ff5f162315cbdd2140a2be4a320b09c4d9103c8a76f74dbe69592c1b4d1d109df5252e2da92b2a6f5d3957f777ae5e
7
+ data.tar.gz: 7f2901b324aa74876ff47399d60109f7e74189e630cec2aadd8b07628b9fe1e1e08aff8d478e6b4c91c627717b53bf11fc30c6784830756b69289bf5664d9557
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Afip (0.8.7)
4
+ Afip (0.8.8)
5
5
  httpi
6
6
  savon
7
7
 
data/lib/Afip/bill.rb CHANGED
@@ -26,6 +26,7 @@ module Afip
26
26
  @exento = attrs[:exento] || 0.0
27
27
  @otros_imp = attrs[:otros_imp] || 0.0
28
28
  @total = net.zero? ? 0 : net + iva_sum
29
+ @tributos = attrs[:tributos] || []
29
30
  end
30
31
 
31
32
  def self.get_ptos_vta
@@ -128,11 +129,11 @@ module Afip
128
129
 
129
130
  if (Afip.own_iva_cond == :responsable_inscripto)
130
131
  detail["ImpIVA"] = iva_sum
131
- detail["Iva"] = { array_ivas }
132
+ detail["Iva"] = array_ivas
132
133
  end
133
134
 
134
135
  if !tributos.empty?
135
- detail["Tributos"] = { array_tributos }
136
+ detail["Tributos"] = array_tributos
136
137
  end
137
138
 
138
139
  unless concepto == "Productos" # En "Productos" ("01"), si se mandan estos parámetros la afip rechaza.
data/lib/Afip/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Afip
2
- VERSION = "0.8.8"
2
+ VERSION = "0.8.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Afip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.8
4
+ version: 0.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo A. Díaz Martínez