br_invoices_pdf 0.2.14 → 0.2.15

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
  SHA1:
3
- metadata.gz: bf966136660e69e3e9d058950f894ab7037f152d
4
- data.tar.gz: 2fb298d2c6ddd77495bdfee55a4c0d9108f81a98
3
+ metadata.gz: 34d08c034ae8a529faf5658815cb00f5d478c1ff
4
+ data.tar.gz: 4d4dfd8e1c611458cdfd2a4fd0c698ce1ba0fb0b
5
5
  SHA512:
6
- metadata.gz: efd84e1ca3fdd7cd319789260af2a29d46902b611e9133ee22a3b19a9fc2b36cc993717ba9de134d9a38fce06935b0c95a6c29736e2de5028fde3fc8a7026b59
7
- data.tar.gz: dd308050e71c54fd4729051f054a11e95b11a8d4576a0687f64088d4e8a0a73774719db6be910fcb2c80b1a4f548311cb8bd77c39b3f70d8f11780b91b6251fa
6
+ metadata.gz: c8dcea3db07431ceb91b20646578489aa3fb3c5609d5d0260d81c1af1af8f354aa8603f6e6b9370687fe63e2e8289024ac43d158e71d6987ea981b5e8989b3ba
7
+ data.tar.gz: 55fd667a3807ca5dae264604b355e3b05fba9d550d892fd90ae27277f616fe735b7ac9f253fc3d0e08ca0cccf14ec479d364c2a47cda66395cae5c20d56fe317
data/.reek.yml ADDED
@@ -0,0 +1,3 @@
1
+ detectors:
2
+ IrresponsibleModule:
3
+ enabled: false
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## CHANGELOG
4
4
 
5
+ ## 0.2.15 [2018-07-10]
6
+ - [Corrigido] Tributos na NFCE
7
+
5
8
  ### 0.2.14 [2018-06-25]
6
9
  - [Corrigido] Adicionando novas urls da sefaz para uf
7
10
 
@@ -9,7 +9,8 @@ module BrInvoicesPdf
9
9
  module_function
10
10
 
11
11
  def execute(xml)
12
- locate_element(xml, 'NFe/infAdic/infCpl')
12
+ tribute = locate_element(xml, "#{root_path(xml)}/det/imposto/vTotTrib")
13
+ tribute || 0
13
14
  end
14
15
  end
15
16
  end
@@ -18,7 +18,8 @@ module BrInvoicesPdf
18
18
  # :reek:FeatureEnvy
19
19
  def tribute_values(pdf, taxes)
20
20
  pdf.text("Tributos\n\n", style: :italic)
21
- text = "#{taxes}\n\n"
21
+ value = format_currency(taxes)
22
+ text = "Informação dos tributos totais incidentes (Lei Federal 12.741/2012):\n R$ #{value}\n\n"
22
23
  pdf.text(text, align: :center)
23
24
  end
24
25
  private_class_method :tribute_values
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrInvoicesPdf
4
- VERSION = '0.2.14'
4
+ VERSION = '0.2.15'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_invoices_pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Ribeiro
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-06-25 00:00:00.000000000 Z
12
+ date: 2018-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: barby
@@ -218,7 +218,7 @@ files:
218
218
  - ".codeclimate.yml"
219
219
  - ".coveralls.yml"
220
220
  - ".gitignore"
221
- - ".reek"
221
+ - ".reek.yml"
222
222
  - ".rspec"
223
223
  - ".rubocop.yml"
224
224
  - CHANGELOG.md
data/.reek DELETED
@@ -1,2 +0,0 @@
1
- IrresponsibleModule:
2
- enabled: false