siap_exporter 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/siap_exporter.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc212a11bfb77c9844ea93aac756caa4bfb7e011
4
- data.tar.gz: 41198c470adc2ce60d460ac8c2fb3aae22475214
3
+ metadata.gz: c3e3dcea9076a173f18b7b86f418f8d209854d4d
4
+ data.tar.gz: 9c4e0131df4d82aa763a48a4a41df92f185d4406
5
5
  SHA512:
6
- metadata.gz: c0aecd73b2e2db4a5777acdde0fa86f9eb4c65d2c8f2fc90e6c8a11c3b56f667c3532cbf2e5e2b6aa6d94d1cd49281978cf5a3b9ba83d263edf732485ecba160
7
- data.tar.gz: df45f8a32e18ff52f1ab804622044faa9a8e1358795d51ff5a09d87a9a509a2829cc1023735fae47b11f6b9f5541c631e4ea3a68871370c8681bcefffc8fbdc1
6
+ metadata.gz: 95b5f0be69ff3abec2e03fb1cca72498e0acde07b9ea78889d38f93363bddbb311cecf5efa0227ae798dbcdf8f7e363b71d8e836a4889c7ce9f34f0610e5ce4a
7
+ data.tar.gz: 9b1b05848ce3a0b17def74592107221ef3894e708121b035fc2d86a6d798c1dc8dede080b9b3d388de43ed658460c9918ecb2edbacdcbc8779b1abecce820669
data/lib/siap_exporter.rb CHANGED
@@ -125,7 +125,7 @@ module SiapExporter
125
125
  comprobante[:cantidad_de_alicuotas] = 0
126
126
  TIPO_ALICUOTA.each do |id, claves|
127
127
  gravado = comprobante[claves[0]]
128
- if gravado
128
+ if gravado and gravado > 0
129
129
  alicuota = comprobante.merge(
130
130
  tipo_comprobante: tipo_comprobante(comprobante[:tipo_comprobante]),
131
131
  gravado: gravado,
@@ -161,7 +161,7 @@ module SiapExporter
161
161
  comprobante[:cantidad_de_alicuotas] = 0
162
162
  TIPO_ALICUOTA.each do |id, claves|
163
163
  gravado = comprobante[claves[0]]
164
- if gravado
164
+ if gravado && gravado > 0
165
165
  alicuota = comprobante.merge(
166
166
  codigo_documento_vendedor: 80,
167
167
  tipo_comprobante: tipo_comprobante(comprobante[:tipo_comprobante]),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siap_exporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Espinaco
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-10-04 00:00:00.000000000 Z
12
+ date: 2016-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fixed_width_dsl