br_danfe 0.14.2 → 0.14.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +10 -10
- data/lib/br_danfe/danfe_lib/nfe_lib/xprod.rb +5 -5
- data/lib/br_danfe/version.rb +1 -1
- data/spec/br_danfe/danfe_lib/nfe_lib/xprod_spec.rb +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 901ebe933fc640548720b741c40f3880dd7487f62034893dddb3983920db0c19
|
4
|
+
data.tar.gz: 164c0b24c3b733fcf36b14d4ad13da79da188db6926f933407ae0e1246cf64c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7de969e1e105dae4811aa8836f905eb5197d704da54cdbb1b79e9a102d99809670336e315c2a23fb335b26517df46ed7c1b2851965e4b70ecd9c8d431a938a92
|
7
|
+
data.tar.gz: 4e4dbf2d4b59fb8a0ef313088191e5ee596c73bdf7dfdd1f793b7c9a0a16d1caa156821788d48036664ebff61eb93621f8bb98f146a272633c0b50dd6886daaf
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
br_danfe (0.14.
|
4
|
+
br_danfe (0.14.3)
|
5
5
|
barby (= 0.5.1)
|
6
6
|
br_documents (>= 0.1.3)
|
7
7
|
i18n (>= 0.8.6)
|
@@ -27,9 +27,9 @@ GEM
|
|
27
27
|
activemodel (>= 4.0.0)
|
28
28
|
i18n (>= 0.6.5)
|
29
29
|
byebug (11.1.3)
|
30
|
-
chunky_png (1.
|
30
|
+
chunky_png (1.4.0)
|
31
31
|
coderay (1.1.3)
|
32
|
-
concurrent-ruby (1.1.
|
32
|
+
concurrent-ruby (1.1.8)
|
33
33
|
diff-lcs (1.4.4)
|
34
34
|
docile (1.3.2)
|
35
35
|
ffi (1.13.1)
|
@@ -48,7 +48,7 @@ GEM
|
|
48
48
|
guard (~> 2.1)
|
49
49
|
guard-compat (~> 1.1)
|
50
50
|
rspec (>= 2.99.0, < 4.0)
|
51
|
-
i18n (1.8.
|
51
|
+
i18n (1.8.9)
|
52
52
|
concurrent-ruby (~> 1.0)
|
53
53
|
jaro_winkler (1.5.4)
|
54
54
|
json (2.3.0)
|
@@ -57,11 +57,10 @@ GEM
|
|
57
57
|
rb-inotify (~> 0.9, >= 0.9.10)
|
58
58
|
lumberjack (1.2.8)
|
59
59
|
method_source (1.0.0)
|
60
|
-
|
61
|
-
minitest (5.14.2)
|
60
|
+
minitest (5.14.4)
|
62
61
|
nenv (0.3.0)
|
63
|
-
nokogiri (1.
|
64
|
-
|
62
|
+
nokogiri (1.11.2-x86_64-linux)
|
63
|
+
racc (~> 1.4)
|
65
64
|
notiffany (0.1.3)
|
66
65
|
nenv (~> 0.1)
|
67
66
|
shellany (~> 0.0)
|
@@ -78,6 +77,7 @@ GEM
|
|
78
77
|
coderay (~> 1.1)
|
79
78
|
method_source (~> 1.0)
|
80
79
|
psych (3.1.0)
|
80
|
+
racc (1.5.2)
|
81
81
|
rainbow (3.0.0)
|
82
82
|
rake (13.0.1)
|
83
83
|
rb-fsevent (0.10.4)
|
@@ -86,7 +86,7 @@ GEM
|
|
86
86
|
rqrcode (1.1.2)
|
87
87
|
chunky_png (~> 1.0)
|
88
88
|
rqrcode_core (~> 0.1)
|
89
|
-
rqrcode_core (0.
|
89
|
+
rqrcode_core (0.2.0)
|
90
90
|
rspec (3.10.0)
|
91
91
|
rspec-core (~> 3.10.0)
|
92
92
|
rspec-expectations (~> 3.10.0)
|
@@ -118,7 +118,7 @@ GEM
|
|
118
118
|
simplecov-html (~> 0.10.0)
|
119
119
|
simplecov-html (0.10.2)
|
120
120
|
thor (1.0.1)
|
121
|
-
ttfunk (1.
|
121
|
+
ttfunk (1.7.0)
|
122
122
|
tzinfo (2.0.4)
|
123
123
|
concurrent-ruby (~> 1.0)
|
124
124
|
unicode-display_width (1.5.0)
|
@@ -47,11 +47,11 @@ module BrDanfe
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def icms_st?
|
50
|
-
@det.css('ICMS/*/vBCST').text.
|
50
|
+
@det.css('ICMS/*/vBCST').text.to_f.positive?
|
51
51
|
end
|
52
52
|
|
53
53
|
def fcp?
|
54
|
-
@det.css('ICMS/*/vFCP').text.
|
54
|
+
@det.css('ICMS/*/vFCP').text.to_f.positive?
|
55
55
|
end
|
56
56
|
|
57
57
|
def fcp
|
@@ -76,7 +76,7 @@ module BrDanfe
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def fcp_st?
|
79
|
-
@det.css('ICMS/*/vFCPST').text.
|
79
|
+
@det.css('ICMS/*/vFCPST').text.to_f.positive?
|
80
80
|
end
|
81
81
|
|
82
82
|
def fcp_st
|
@@ -91,8 +91,8 @@ module BrDanfe
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def icms_st_ret?
|
94
|
-
@det.css('ICMS/*/vBCSTRet').text.
|
95
|
-
@det.css('ICMS/*/pST').text.
|
94
|
+
@det.css('ICMS/*/vBCSTRet').text.to_f.positive? || @det.css('ICMS/*/vICMSSTRet').text.to_f.positive? ||
|
95
|
+
@det.css('ICMS/*/pST').text.to_f.positive?
|
96
96
|
end
|
97
97
|
|
98
98
|
def icms_st_ret
|
data/lib/br_danfe/version.rb
CHANGED
@@ -300,7 +300,7 @@ describe BrDanfe::DanfeLib::NfeLib::Xprod do
|
|
300
300
|
<ICMS>
|
301
301
|
<ICMS30>
|
302
302
|
<vBCFCPST>235.50</vBCFCPST>
|
303
|
-
<vFCPST>
|
303
|
+
<vFCPST>0.71</vFCPST>
|
304
304
|
<pFCPST>2.00</pFCPST>
|
305
305
|
</ICMS30>
|
306
306
|
</ICMS>
|
@@ -316,7 +316,7 @@ describe BrDanfe::DanfeLib::NfeLib::Xprod do
|
|
316
316
|
it 'returns product + FCP' do
|
317
317
|
expected = 'MONITOR DE ARCO ELETRICO'
|
318
318
|
expected += "\n"
|
319
|
-
expected += 'FCP ST: Base: 235,50 * Alíq: 2,00% * Vlr:
|
319
|
+
expected += 'FCP ST: Base: 235,50 * Alíq: 2,00% * Vlr: 0,71'
|
320
320
|
|
321
321
|
expect(subject.render).to eq expected
|
322
322
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: br_danfe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ASSEINFO
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: barby
|
@@ -234,7 +234,7 @@ dependencies:
|
|
234
234
|
- - ">="
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '0'
|
237
|
-
description:
|
237
|
+
description:
|
238
238
|
email: asseinfo@asseinfo.com.br
|
239
239
|
executables: []
|
240
240
|
extensions: []
|
@@ -488,7 +488,7 @@ homepage: http://github.com/asseinfo/br_danfe
|
|
488
488
|
licenses:
|
489
489
|
- MIT
|
490
490
|
metadata: {}
|
491
|
-
post_install_message:
|
491
|
+
post_install_message:
|
492
492
|
rdoc_options: []
|
493
493
|
require_paths:
|
494
494
|
- lib
|
@@ -503,8 +503,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
503
503
|
- !ruby/object:Gem::Version
|
504
504
|
version: '0'
|
505
505
|
requirements: []
|
506
|
-
rubygems_version: 3.
|
507
|
-
signing_key:
|
506
|
+
rubygems_version: 3.1.4
|
507
|
+
signing_key:
|
508
508
|
specification_version: 4
|
509
509
|
summary: DANFE pdf generator for Brazilian invoices.
|
510
510
|
test_files: []
|