br_danfe 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/pt-BR.yml +1 -0
- data/lib/br_danfe/danfe_lib/xprod.rb +17 -0
- data/lib/br_danfe/version.rb +1 -1
- data/spec/fixtures/nfe/lib/det_body#render-difal.pdf +274 -0
- data/spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml +523 -1
- data/spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf +239 -8
- data/spec/lib/danfe_lib/det_body_spec.rb +43 -0
- metadata +4 -99
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb7955c61761067d0182134678fe401ccd1f956b
|
4
|
+
data.tar.gz: 69ffe8bd2f936b6fde80256b9755163b0b0dda58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b278a3c4f2a0c19eefbf3b0bf31508974dcb46fffbcb4c0fc275815c6b474f2eb29841dd93a42febaa38a51b0e8c7362e35ce93625e3e122b732888f2dd7f9e7
|
7
|
+
data.tar.gz: 1441b461a99c32f715bab87df995b78d52668b4c47ce88f6540c43526801d0a7b4f71ce88b975701d0f051dcd1e6c83026df3efb0969db1648dffe0ab8b728f8
|
data/config/locales/pt-BR.yml
CHANGED
@@ -105,6 +105,7 @@ pt-BR:
|
|
105
105
|
vProd: "VALOR TOT"
|
106
106
|
xProdST: "ST: MVA: %{pMVAST}% * Alíq: %{pICMSST}% * BC: %{vBCST} * Vlr: %{vICMSST}"
|
107
107
|
xProdFCI: "FCI: %{nFCI}"
|
108
|
+
xProdDIFAL: "DIFAL: Vlr BC: %{vBCUFDest} * Vlr ICMS Remet: %{vICMSUFRemet} * Vlr ICMS Dest: %{vICMSUFDest} * Vlr FCP: %{vFCPUFDest} * FCP: %{pFCPUFDest}% * ICMS: %{pICMSUFDest}% * ICMS Inter: %{pICMSInter}% * ICMS Inter Part: %{pICMSInterPart}%"
|
108
109
|
ICMS:
|
109
110
|
CST: "CST"
|
110
111
|
vBC: "BASE CÁLC"
|
@@ -11,6 +11,7 @@ module BrDanfe
|
|
11
11
|
xprod += infAdProd if has_infAdProd?
|
12
12
|
xprod += fci if has_fci?
|
13
13
|
xprod += st if has_st?
|
14
|
+
xprod += difal if has_difal?
|
14
15
|
|
15
16
|
xprod
|
16
17
|
end
|
@@ -28,6 +29,10 @@ module BrDanfe
|
|
28
29
|
@det.css("ICMS/*/vBCST").text.to_i > 0
|
29
30
|
end
|
30
31
|
|
32
|
+
def has_difal?
|
33
|
+
@det.css("ICMSUFDest").present?
|
34
|
+
end
|
35
|
+
|
31
36
|
def infAdProd
|
32
37
|
"\n" + @det.css("infAdProd").text
|
33
38
|
end
|
@@ -43,6 +48,18 @@ module BrDanfe
|
|
43
48
|
vBCST: Helper.numerify(@det.css('ICMS/*/vBCST').text, 2),
|
44
49
|
vICMSST: Helper.numerify(@det.css('ICMS/*/vICMSST').text, 2))
|
45
50
|
end
|
51
|
+
|
52
|
+
def difal
|
53
|
+
"\n" + I18n.t("danfe.det.prod.xProdDIFAL",
|
54
|
+
vBCUFDest: Helper.numerify(@det.css('ICMSUFDest/vBCUFDest').text, 2),
|
55
|
+
pFCPUFDest: Helper.numerify(@det.css('ICMSUFDest/pFCPUFDest').text, 2),
|
56
|
+
pICMSUFDest: Helper.numerify(@det.css('ICMSUFDest/pICMSUFDest').text, 2),
|
57
|
+
pICMSInter: Helper.numerify(@det.css('ICMSUFDest/pICMSInter').text, 2),
|
58
|
+
pICMSInterPart: @det.css('ICMSUFDest/pICMSInterPart').text,
|
59
|
+
vFCPUFDest: Helper.numerify(@det.css('ICMSUFDest/vFCPUFDest').text, 2),
|
60
|
+
vICMSUFDest: Helper.numerify(@det.css('ICMSUFDest/vICMSUFDest').text, 2),
|
61
|
+
vICMSUFRemet: Helper.numerify(@det.css('ICMSUFDest/vICMSUFRemet').text, 2))
|
62
|
+
end
|
46
63
|
end
|
47
64
|
end
|
48
65
|
end
|
data/lib/br_danfe/version.rb
CHANGED
@@ -0,0 +1,274 @@
|
|
1
|
+
%PDF-1.3
|
2
|
+
%����
|
3
|
+
1 0 obj
|
4
|
+
<< /Creator <feff0050007200610077006e>
|
5
|
+
/Producer <feff0050007200610077006e>
|
6
|
+
>>
|
7
|
+
endobj
|
8
|
+
2 0 obj
|
9
|
+
<< /Type /Catalog
|
10
|
+
/Pages 3 0 R
|
11
|
+
>>
|
12
|
+
endobj
|
13
|
+
3 0 obj
|
14
|
+
<< /Type /Pages
|
15
|
+
/Count 1
|
16
|
+
/Kids [5 0 R]
|
17
|
+
>>
|
18
|
+
endobj
|
19
|
+
4 0 obj
|
20
|
+
<< /Length 2898
|
21
|
+
>>
|
22
|
+
stream
|
23
|
+
q
|
24
|
+
0.3 w
|
25
|
+
[0.3 0.6] 0 d
|
26
|
+
0.3 w
|
27
|
+
/DeviceRGB CS
|
28
|
+
0.000 0.000 0.000 SCN
|
29
|
+
21.260 285.103 m
|
30
|
+
63.780 285.103 l
|
31
|
+
S
|
32
|
+
[ ] 0 d
|
33
|
+
0.3 w
|
34
|
+
0.000 0.000 0.000 SCN
|
35
|
+
|
36
|
+
BT
|
37
|
+
23.25984251968504 315.18567716535443 Td
|
38
|
+
/F1.0 6 Tf
|
39
|
+
[<33>] TJ
|
40
|
+
ET
|
41
|
+
|
42
|
+
[0.3 0.6] 0 d
|
43
|
+
0.3 w
|
44
|
+
0.000 0.000 0.000 SCN
|
45
|
+
63.780 285.103 m
|
46
|
+
188.504 285.103 l
|
47
|
+
S
|
48
|
+
[ ] 0 d
|
49
|
+
0.3 w
|
50
|
+
0.000 0.000 0.000 SCN
|
51
|
+
|
52
|
+
BT
|
53
|
+
65.77952755905513 315.18567716535443 Td
|
54
|
+
/F1.0 6 Tf
|
55
|
+
[<50726f6475746f20436f6d20444946> 74 <414c>] TJ
|
56
|
+
ET
|
57
|
+
|
58
|
+
|
59
|
+
BT
|
60
|
+
65.77952755905513 308.48967716535446 Td
|
61
|
+
/F1.0 6 Tf
|
62
|
+
[<444946> 74 <414c3a20566c722042433a2031322e3030302c3533202a20566c722049434d532052656d65743a>] TJ
|
63
|
+
ET
|
64
|
+
|
65
|
+
|
66
|
+
BT
|
67
|
+
65.77952755905513 301.79367716535444 Td
|
68
|
+
/F1.0 6 Tf
|
69
|
+
[<31322e3334342c3536202a20566c722049434d5320446573743a2031392e3238322c3437202a20566c72204643503a>] TJ
|
70
|
+
ET
|
71
|
+
|
72
|
+
|
73
|
+
BT
|
74
|
+
65.77952755905513 295.09767716535447 Td
|
75
|
+
/F1.0 6 Tf
|
76
|
+
[<31312e3030322c3335202a204643503a2031372c393025202a2049434d533a2032312c353125202a>] TJ
|
77
|
+
ET
|
78
|
+
|
79
|
+
|
80
|
+
BT
|
81
|
+
65.77952755905513 288.40167716535444 Td
|
82
|
+
/F1.0 6 Tf
|
83
|
+
[<49434d5320496e7465723a2031322c343525202a2049434d5320496e7465722050> 15 <6172743a20343025>] TJ
|
84
|
+
ET
|
85
|
+
|
86
|
+
[0.3 0.6] 0 d
|
87
|
+
0.3 w
|
88
|
+
0.000 0.000 0.000 SCN
|
89
|
+
188.504 285.103 m
|
90
|
+
225.354 285.103 l
|
91
|
+
S
|
92
|
+
[ ] 0 d
|
93
|
+
0.3 w
|
94
|
+
0.000 0.000 0.000 SCN
|
95
|
+
|
96
|
+
BT
|
97
|
+
190.50393700787401 315.18567716535443 Td
|
98
|
+
/F1.0 6 Tf
|
99
|
+
[<3435363738393031>] TJ
|
100
|
+
ET
|
101
|
+
|
102
|
+
[0.3 0.6] 0 d
|
103
|
+
0.3 w
|
104
|
+
0.000 0.000 0.000 SCN
|
105
|
+
225.354 285.103 m
|
106
|
+
248.031 285.103 l
|
107
|
+
S
|
108
|
+
[ ] 0 d
|
109
|
+
0.3 w
|
110
|
+
0.000 0.000 0.000 SCN
|
111
|
+
[0.3 0.6] 0 d
|
112
|
+
0.3 w
|
113
|
+
0.000 0.000 0.000 SCN
|
114
|
+
248.031 285.103 m
|
115
|
+
276.378 285.103 l
|
116
|
+
S
|
117
|
+
[ ] 0 d
|
118
|
+
0.3 w
|
119
|
+
0.000 0.000 0.000 SCN
|
120
|
+
|
121
|
+
BT
|
122
|
+
250.03149606299212 315.18567716535443 Td
|
123
|
+
/F1.0 6 Tf
|
124
|
+
[<35343031>] TJ
|
125
|
+
ET
|
126
|
+
|
127
|
+
[0.3 0.6] 0 d
|
128
|
+
0.3 w
|
129
|
+
0.000 0.000 0.000 SCN
|
130
|
+
276.378 285.103 m
|
131
|
+
304.724 285.103 l
|
132
|
+
S
|
133
|
+
[ ] 0 d
|
134
|
+
0.3 w
|
135
|
+
0.000 0.000 0.000 SCN
|
136
|
+
|
137
|
+
BT
|
138
|
+
278.37795275590554 315.18567716535443 Td
|
139
|
+
/F1.0 6 Tf
|
140
|
+
[<554e>] TJ
|
141
|
+
ET
|
142
|
+
|
143
|
+
[0.3 0.6] 0 d
|
144
|
+
0.3 w
|
145
|
+
0.000 0.000 0.000 SCN
|
146
|
+
304.724 285.103 m
|
147
|
+
341.575 285.103 l
|
148
|
+
S
|
149
|
+
[ ] 0 d
|
150
|
+
0.3 w
|
151
|
+
0.000 0.000 0.000 SCN
|
152
|
+
|
153
|
+
BT
|
154
|
+
330.0748031496063 315.18567716535443 Td
|
155
|
+
/F1.0 6 Tf
|
156
|
+
[<362c3030>] TJ
|
157
|
+
ET
|
158
|
+
|
159
|
+
[0.3 0.6] 0 d
|
160
|
+
0.3 w
|
161
|
+
0.000 0.000 0.000 SCN
|
162
|
+
341.575 285.103 m
|
163
|
+
384.094 285.103 l
|
164
|
+
S
|
165
|
+
[ ] 0 d
|
166
|
+
0.3 w
|
167
|
+
0.000 0.000 0.000 SCN
|
168
|
+
|
169
|
+
BT
|
170
|
+
372.5944881889764 315.18567716535443 Td
|
171
|
+
/F1.0 6 Tf
|
172
|
+
[<312c3133>] TJ
|
173
|
+
ET
|
174
|
+
|
175
|
+
[0.3 0.6] 0 d
|
176
|
+
0.3 w
|
177
|
+
0.000 0.000 0.000 SCN
|
178
|
+
384.094 285.103 m
|
179
|
+
426.614 285.103 l
|
180
|
+
S
|
181
|
+
[ ] 0 d
|
182
|
+
0.3 w
|
183
|
+
0.000 0.000 0.000 SCN
|
184
|
+
|
185
|
+
BT
|
186
|
+
415.1141732283465 315.18567716535443 Td
|
187
|
+
/F1.0 6 Tf
|
188
|
+
[<362c3739>] TJ
|
189
|
+
ET
|
190
|
+
|
191
|
+
[0.3 0.6] 0 d
|
192
|
+
0.3 w
|
193
|
+
0.000 0.000 0.000 SCN
|
194
|
+
426.614 285.103 m
|
195
|
+
469.134 285.103 l
|
196
|
+
S
|
197
|
+
[ ] 0 d
|
198
|
+
0.3 w
|
199
|
+
0.000 0.000 0.000 SCN
|
200
|
+
[0.3 0.6] 0 d
|
201
|
+
0.3 w
|
202
|
+
0.000 0.000 0.000 SCN
|
203
|
+
469.134 285.103 m
|
204
|
+
497.480 285.103 l
|
205
|
+
S
|
206
|
+
[ ] 0 d
|
207
|
+
0.3 w
|
208
|
+
0.000 0.000 0.000 SCN
|
209
|
+
[0.3 0.6] 0 d
|
210
|
+
0.3 w
|
211
|
+
0.000 0.000 0.000 SCN
|
212
|
+
497.480 285.103 m
|
213
|
+
525.827 285.103 l
|
214
|
+
S
|
215
|
+
[ ] 0 d
|
216
|
+
0.3 w
|
217
|
+
0.000 0.000 0.000 SCN
|
218
|
+
[0.3 0.6] 0 d
|
219
|
+
0.3 w
|
220
|
+
0.000 0.000 0.000 SCN
|
221
|
+
525.827 285.103 m
|
222
|
+
551.339 285.103 l
|
223
|
+
S
|
224
|
+
[ ] 0 d
|
225
|
+
0.3 w
|
226
|
+
0.000 0.000 0.000 SCN
|
227
|
+
[0.3 0.6] 0 d
|
228
|
+
0.3 w
|
229
|
+
0.000 0.000 0.000 SCN
|
230
|
+
551.339 285.103 m
|
231
|
+
575.717 285.103 l
|
232
|
+
S
|
233
|
+
[ ] 0 d
|
234
|
+
0.3 w
|
235
|
+
0.000 0.000 0.000 SCN
|
236
|
+
Q
|
237
|
+
|
238
|
+
endstream
|
239
|
+
endobj
|
240
|
+
5 0 obj
|
241
|
+
<< /Type /Page
|
242
|
+
/Parent 3 0 R
|
243
|
+
/MediaBox [0 0 595.28 841.89]
|
244
|
+
/Contents 4 0 R
|
245
|
+
/Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
|
246
|
+
/Font << /F1.0 6 0 R
|
247
|
+
>>
|
248
|
+
>>
|
249
|
+
>>
|
250
|
+
endobj
|
251
|
+
6 0 obj
|
252
|
+
<< /Type /Font
|
253
|
+
/Subtype /Type1
|
254
|
+
/BaseFont /Times-Roman
|
255
|
+
/Encoding /WinAnsiEncoding
|
256
|
+
>>
|
257
|
+
endobj
|
258
|
+
xref
|
259
|
+
0 7
|
260
|
+
0000000000 65535 f
|
261
|
+
0000000015 00000 n
|
262
|
+
0000000109 00000 n
|
263
|
+
0000000158 00000 n
|
264
|
+
0000000215 00000 n
|
265
|
+
0000003165 00000 n
|
266
|
+
0000003345 00000 n
|
267
|
+
trailer
|
268
|
+
<< /Size 7
|
269
|
+
/Root 2 0 R
|
270
|
+
/Info 1 0 R
|
271
|
+
>>
|
272
|
+
startxref
|
273
|
+
3444
|
274
|
+
%%EOF
|
@@ -1 +1,523 @@
|
|
1
|
-
<NFe xmlns="http://www.portalfiscal.inf.br/nfe"
|
1
|
+
<NFe xmlns="http://www.portalfiscal.inf.br/nfe">
|
2
|
+
<infNFe versao="3.10" Id="NFe35150162013294000143550010000000011000000017">
|
3
|
+
<ide>
|
4
|
+
<cUF>35</cUF>
|
5
|
+
<cNF>00000001</cNF>
|
6
|
+
<natOp>5101-Venda de producao do estabelecimento</natOp>
|
7
|
+
<indPag>1</indPag>
|
8
|
+
<mod>55</mod>
|
9
|
+
<serie>1</serie>
|
10
|
+
<nNF>1</nNF>
|
11
|
+
<dhEmi>2015-01-14T00:00:00-02:00</dhEmi>
|
12
|
+
<dhSaiEnt>2011-10-30T15:32:45-02:00</dhSaiEnt>
|
13
|
+
<tpNF>1</tpNF>
|
14
|
+
<idDest>1</idDest>
|
15
|
+
<cMunFG>3550308</cMunFG>
|
16
|
+
<tpImp>1</tpImp>
|
17
|
+
<tpEmis>1</tpEmis>
|
18
|
+
<cDV>7</cDV>
|
19
|
+
<tpAmb>1</tpAmb>
|
20
|
+
<finNFe>1</finNFe>
|
21
|
+
<indFinal>0</indFinal>
|
22
|
+
<indPres>0</indPres>
|
23
|
+
<procEmi>0</procEmi>
|
24
|
+
<verProc>1</verProc>
|
25
|
+
</ide>
|
26
|
+
<emit>
|
27
|
+
<CNPJ>62013294000143</CNPJ>
|
28
|
+
<xNome>Nome do Remetente Ltda</xNome>
|
29
|
+
<xFant>Nome Fantasia do Remetente Ltda</xFant>
|
30
|
+
<enderEmit>
|
31
|
+
<xLgr>Rua do Remetente, Casa</xLgr>
|
32
|
+
<nro>123</nro>
|
33
|
+
<xBairro>Bairro do Remetente</xBairro>
|
34
|
+
<cMun>3550308</cMun>
|
35
|
+
<xMun>SAO PAULO</xMun>
|
36
|
+
<UF>SP</UF>
|
37
|
+
<CEP>12345678</CEP>
|
38
|
+
<cPais>1058</cPais>
|
39
|
+
<xPais>BRASIL</xPais>
|
40
|
+
<fone>1112345678</fone>
|
41
|
+
</enderEmit>
|
42
|
+
<IE>526926313553</IE>
|
43
|
+
<CRT>1</CRT>
|
44
|
+
</emit>
|
45
|
+
<dest>
|
46
|
+
<CNPJ>71058884000183</CNPJ>
|
47
|
+
<xNome>Nome do Destinatario Pj Ltda</xNome>
|
48
|
+
<enderDest>
|
49
|
+
<xLgr>Rua do Destinatario Pj, Sl 1 e 2</xLgr>
|
50
|
+
<nro>345</nro>
|
51
|
+
<xBairro>Bairro do Destinatario Pj</xBairro>
|
52
|
+
<cMun>3552403</cMun>
|
53
|
+
<xMun>SUMARE</xMun>
|
54
|
+
<UF>SP</UF>
|
55
|
+
<CEP>23456789</CEP>
|
56
|
+
<cPais>1058</cPais>
|
57
|
+
<xPais>BRASIL</xPais>
|
58
|
+
<fone>1923456789</fone>
|
59
|
+
</enderDest>
|
60
|
+
<indIEDest>1</indIEDest>
|
61
|
+
<IE>671008375110</IE>
|
62
|
+
</dest>
|
63
|
+
<det nItem="1">
|
64
|
+
<prod>
|
65
|
+
<cProd>1</cProd>
|
66
|
+
<cEAN />
|
67
|
+
<xProd>Produto Com Csosn 101</xProd>
|
68
|
+
<NCM />
|
69
|
+
<CFOP>5101</CFOP>
|
70
|
+
<uCom>UN</uCom>
|
71
|
+
<qCom>2.0000</qCom>
|
72
|
+
<vUnCom>1.0100000000</vUnCom>
|
73
|
+
<vProd>2.02</vProd>
|
74
|
+
<cEANTrib />
|
75
|
+
<uTrib>UN</uTrib>
|
76
|
+
<qTrib>2.0000</qTrib>
|
77
|
+
<vUnTrib>1.0100000000</vUnTrib>
|
78
|
+
<indTot>1</indTot>
|
79
|
+
</prod>
|
80
|
+
<imposto>
|
81
|
+
<ICMS>
|
82
|
+
<ICMSSN101>
|
83
|
+
<orig>0</orig>
|
84
|
+
<CSOSN>101</CSOSN>
|
85
|
+
<pCredSN>0.0000</pCredSN>
|
86
|
+
<vCredICMSSN>0.00</vCredICMSSN>
|
87
|
+
</ICMSSN101>
|
88
|
+
</ICMS>
|
89
|
+
<PIS>
|
90
|
+
<PISOutr>
|
91
|
+
<CST>99</CST>
|
92
|
+
<vBC>0.00</vBC>
|
93
|
+
<pPIS>0.0000</pPIS>
|
94
|
+
<vPIS>0.00</vPIS>
|
95
|
+
</PISOutr>
|
96
|
+
</PIS>
|
97
|
+
<COFINS>
|
98
|
+
<COFINSOutr>
|
99
|
+
<CST>99</CST>
|
100
|
+
<vBC>0.00</vBC>
|
101
|
+
<pCOFINS>0.0000</pCOFINS>
|
102
|
+
<vCOFINS>0.00</vCOFINS>
|
103
|
+
</COFINSOutr>
|
104
|
+
</COFINS>
|
105
|
+
</imposto>
|
106
|
+
</det>
|
107
|
+
<det nItem="2">
|
108
|
+
<prod>
|
109
|
+
<cProd>2</cProd>
|
110
|
+
<cEAN />
|
111
|
+
<xProd>Produto Com Csosn102</xProd>
|
112
|
+
<NCM />
|
113
|
+
<CFOP>5101</CFOP>
|
114
|
+
<uCom>UN</uCom>
|
115
|
+
<qCom>4.0000</qCom>
|
116
|
+
<vUnCom>1.0200000000</vUnCom>
|
117
|
+
<vProd>4.08</vProd>
|
118
|
+
<cEANTrib />
|
119
|
+
<uTrib>UN</uTrib>
|
120
|
+
<qTrib>4.0000</qTrib>
|
121
|
+
<vUnTrib>1.0200000000</vUnTrib>
|
122
|
+
<indTot>1</indTot>
|
123
|
+
</prod>
|
124
|
+
<imposto>
|
125
|
+
<ICMS>
|
126
|
+
<ICMSSN102>
|
127
|
+
<orig>0</orig>
|
128
|
+
<CSOSN>102</CSOSN>
|
129
|
+
</ICMSSN102>
|
130
|
+
</ICMS>
|
131
|
+
<PIS>
|
132
|
+
<PISOutr>
|
133
|
+
<CST>99</CST>
|
134
|
+
<vBC>0.00</vBC>
|
135
|
+
<pPIS>0.0000</pPIS>
|
136
|
+
<vPIS>0.00</vPIS>
|
137
|
+
</PISOutr>
|
138
|
+
</PIS>
|
139
|
+
<COFINS>
|
140
|
+
<COFINSOutr>
|
141
|
+
<CST>99</CST>
|
142
|
+
<vBC>0.00</vBC>
|
143
|
+
<pCOFINS>0.0000</pCOFINS>
|
144
|
+
<vCOFINS>0.00</vCOFINS>
|
145
|
+
</COFINSOutr>
|
146
|
+
</COFINS>
|
147
|
+
</imposto>
|
148
|
+
</det>
|
149
|
+
<det nItem="3">
|
150
|
+
<prod>
|
151
|
+
<cProd>3</cProd>
|
152
|
+
<cEAN />
|
153
|
+
<xProd>Produto Com Csosn 201</xProd>
|
154
|
+
<NCM />
|
155
|
+
<CFOP>5401</CFOP>
|
156
|
+
<uCom>UN</uCom>
|
157
|
+
<qCom>6.0000</qCom>
|
158
|
+
<vUnCom>1.0300000000</vUnCom>
|
159
|
+
<vProd>6.18</vProd>
|
160
|
+
<cEANTrib />
|
161
|
+
<uTrib>UN</uTrib>
|
162
|
+
<qTrib>6.0000</qTrib>
|
163
|
+
<vUnTrib>1.0300000000</vUnTrib>
|
164
|
+
<indTot>1</indTot>
|
165
|
+
</prod>
|
166
|
+
<imposto>
|
167
|
+
<ICMS>
|
168
|
+
<ICMSSN201>
|
169
|
+
<orig>0</orig>
|
170
|
+
<CSOSN>201</CSOSN>
|
171
|
+
<modBCST>4</modBCST>
|
172
|
+
<pMVAST>24.0000</pMVAST>
|
173
|
+
<pRedBCST>100.0000</pRedBCST>
|
174
|
+
<vBCST>7.66</vBCST>
|
175
|
+
<pICMSST>17.0000</pICMSST>
|
176
|
+
<vICMSST>0.25</vICMSST>
|
177
|
+
<pCredSN>0.0000</pCredSN>
|
178
|
+
<vCredICMSSN>0.00</vCredICMSSN>
|
179
|
+
</ICMSSN201>
|
180
|
+
</ICMS>
|
181
|
+
<PIS>
|
182
|
+
<PISOutr>
|
183
|
+
<CST>99</CST>
|
184
|
+
<vBC>0.00</vBC>
|
185
|
+
<pPIS>0.0000</pPIS>
|
186
|
+
<vPIS>0.00</vPIS>
|
187
|
+
</PISOutr>
|
188
|
+
</PIS>
|
189
|
+
<COFINS>
|
190
|
+
<COFINSOutr>
|
191
|
+
<CST>99</CST>
|
192
|
+
<vBC>0.00</vBC>
|
193
|
+
<pCOFINS>0.0000</pCOFINS>
|
194
|
+
<vCOFINS>0.00</vCOFINS>
|
195
|
+
</COFINSOutr>
|
196
|
+
</COFINS>
|
197
|
+
</imposto>
|
198
|
+
</det>
|
199
|
+
<det nItem="4">
|
200
|
+
<prod>
|
201
|
+
<cProd>4</cProd>
|
202
|
+
<cEAN />
|
203
|
+
<xProd>Produto Com Csosn 202</xProd>
|
204
|
+
<NCM />
|
205
|
+
<CFOP>5401</CFOP>
|
206
|
+
<uCom>UN</uCom>
|
207
|
+
<qCom>8.0000</qCom>
|
208
|
+
<vUnCom>1.0400000000</vUnCom>
|
209
|
+
<vProd>8.32</vProd>
|
210
|
+
<cEANTrib />
|
211
|
+
<uTrib>UN</uTrib>
|
212
|
+
<qTrib>8.0000</qTrib>
|
213
|
+
<vUnTrib>1.0400000000</vUnTrib>
|
214
|
+
<indTot>1</indTot>
|
215
|
+
</prod>
|
216
|
+
<imposto>
|
217
|
+
<ICMS>
|
218
|
+
<ICMSSN202>
|
219
|
+
<orig>0</orig>
|
220
|
+
<CSOSN>202</CSOSN>
|
221
|
+
<modBCST>4</modBCST>
|
222
|
+
<pMVAST>24.0000</pMVAST>
|
223
|
+
<pRedBCST>100.0000</pRedBCST>
|
224
|
+
<vBCST>10.32</vBCST>
|
225
|
+
<pICMSST>17.0000</pICMSST>
|
226
|
+
<vICMSST>0.34</vICMSST>
|
227
|
+
</ICMSSN202>
|
228
|
+
</ICMS>
|
229
|
+
<PIS>
|
230
|
+
<PISOutr>
|
231
|
+
<CST>99</CST>
|
232
|
+
<vBC>0.00</vBC>
|
233
|
+
<pPIS>0.0000</pPIS>
|
234
|
+
<vPIS>0.00</vPIS>
|
235
|
+
</PISOutr>
|
236
|
+
</PIS>
|
237
|
+
<COFINS>
|
238
|
+
<COFINSOutr>
|
239
|
+
<CST>99</CST>
|
240
|
+
<vBC>0.00</vBC>
|
241
|
+
<pCOFINS>0.0000</pCOFINS>
|
242
|
+
<vCOFINS>0.00</vCOFINS>
|
243
|
+
</COFINSOutr>
|
244
|
+
</COFINS>
|
245
|
+
</imposto>
|
246
|
+
</det>
|
247
|
+
<det nItem="5">
|
248
|
+
<prod>
|
249
|
+
<cProd>5</cProd>
|
250
|
+
<cEAN />
|
251
|
+
<xProd>Produto Com Csosn 300</xProd>
|
252
|
+
<NCM />
|
253
|
+
<CFOP>5101</CFOP>
|
254
|
+
<uCom>UN</uCom>
|
255
|
+
<qCom>10.0000</qCom>
|
256
|
+
<vUnCom>1.0500000000</vUnCom>
|
257
|
+
<vProd>10.50</vProd>
|
258
|
+
<cEANTrib />
|
259
|
+
<uTrib>UN</uTrib>
|
260
|
+
<qTrib>10.0000</qTrib>
|
261
|
+
<vUnTrib>1.0500000000</vUnTrib>
|
262
|
+
<indTot>1</indTot>
|
263
|
+
</prod>
|
264
|
+
<imposto>
|
265
|
+
<ICMS>
|
266
|
+
<ICMSSN102>
|
267
|
+
<orig>0</orig>
|
268
|
+
<CSOSN>300</CSOSN>
|
269
|
+
</ICMSSN102>
|
270
|
+
</ICMS>
|
271
|
+
<PIS>
|
272
|
+
<PISOutr>
|
273
|
+
<CST>99</CST>
|
274
|
+
<vBC>0.00</vBC>
|
275
|
+
<pPIS>0.0000</pPIS>
|
276
|
+
<vPIS>0.00</vPIS>
|
277
|
+
</PISOutr>
|
278
|
+
</PIS>
|
279
|
+
<COFINS>
|
280
|
+
<COFINSOutr>
|
281
|
+
<CST>99</CST>
|
282
|
+
<vBC>0.00</vBC>
|
283
|
+
<pCOFINS>0.0000</pCOFINS>
|
284
|
+
<vCOFINS>0.00</vCOFINS>
|
285
|
+
</COFINSOutr>
|
286
|
+
</COFINS>
|
287
|
+
</imposto>
|
288
|
+
</det>
|
289
|
+
<det nItem="6">
|
290
|
+
<prod>
|
291
|
+
<cProd>6</cProd>
|
292
|
+
<cEAN />
|
293
|
+
<xProd>Produto Com Csosn 400</xProd>
|
294
|
+
<NCM />
|
295
|
+
<CFOP>5101</CFOP>
|
296
|
+
<uCom>UN</uCom>
|
297
|
+
<qCom>12.0000</qCom>
|
298
|
+
<vUnCom>1.0600000000</vUnCom>
|
299
|
+
<vProd>12.72</vProd>
|
300
|
+
<cEANTrib />
|
301
|
+
<uTrib>UN</uTrib>
|
302
|
+
<qTrib>12.0000</qTrib>
|
303
|
+
<vUnTrib>1.0600000000</vUnTrib>
|
304
|
+
<indTot>1</indTot>
|
305
|
+
</prod>
|
306
|
+
<imposto>
|
307
|
+
<ICMS>
|
308
|
+
<ICMSSN102>
|
309
|
+
<orig>0</orig>
|
310
|
+
<CSOSN>400</CSOSN>
|
311
|
+
</ICMSSN102>
|
312
|
+
</ICMS>
|
313
|
+
<PIS>
|
314
|
+
<PISOutr>
|
315
|
+
<CST>99</CST>
|
316
|
+
<vBC>0.00</vBC>
|
317
|
+
<pPIS>0.0000</pPIS>
|
318
|
+
<vPIS>0.00</vPIS>
|
319
|
+
</PISOutr>
|
320
|
+
</PIS>
|
321
|
+
<COFINS>
|
322
|
+
<COFINSOutr>
|
323
|
+
<CST>99</CST>
|
324
|
+
<vBC>0.00</vBC>
|
325
|
+
<pCOFINS>0.0000</pCOFINS>
|
326
|
+
<vCOFINS>0.00</vCOFINS>
|
327
|
+
</COFINSOutr>
|
328
|
+
</COFINS>
|
329
|
+
</imposto>
|
330
|
+
</det>
|
331
|
+
<det nItem="7">
|
332
|
+
<prod>
|
333
|
+
<cProd>7</cProd>
|
334
|
+
<cEAN />
|
335
|
+
<xProd>Produto Com Csosn 500</xProd>
|
336
|
+
<NCM />
|
337
|
+
<CFOP>5405</CFOP>
|
338
|
+
<uCom>UN</uCom>
|
339
|
+
<qCom>14.0000</qCom>
|
340
|
+
<vUnCom>1.0700000000</vUnCom>
|
341
|
+
<vProd>14.98</vProd>
|
342
|
+
<cEANTrib />
|
343
|
+
<uTrib>UN</uTrib>
|
344
|
+
<qTrib>14.0000</qTrib>
|
345
|
+
<vUnTrib>1.0700000000</vUnTrib>
|
346
|
+
<indTot>1</indTot>
|
347
|
+
</prod>
|
348
|
+
<imposto>
|
349
|
+
<ICMS>
|
350
|
+
<ICMSSN500>
|
351
|
+
<orig>0</orig>
|
352
|
+
<CSOSN>500</CSOSN>
|
353
|
+
</ICMSSN500>
|
354
|
+
</ICMS>
|
355
|
+
<PIS>
|
356
|
+
<PISOutr>
|
357
|
+
<CST>99</CST>
|
358
|
+
<vBC>0.00</vBC>
|
359
|
+
<pPIS>0.0000</pPIS>
|
360
|
+
<vPIS>0.00</vPIS>
|
361
|
+
</PISOutr>
|
362
|
+
</PIS>
|
363
|
+
<COFINS>
|
364
|
+
<COFINSOutr>
|
365
|
+
<CST>99</CST>
|
366
|
+
<vBC>0.00</vBC>
|
367
|
+
<pCOFINS>0.0000</pCOFINS>
|
368
|
+
<vCOFINS>0.00</vCOFINS>
|
369
|
+
</COFINSOutr>
|
370
|
+
</COFINS>
|
371
|
+
</imposto>
|
372
|
+
</det>
|
373
|
+
<det nItem="8">
|
374
|
+
<prod>
|
375
|
+
<cProd>8</cProd>
|
376
|
+
<cEAN />
|
377
|
+
<xProd>Produto Com Csosn 900</xProd>
|
378
|
+
<NCM />
|
379
|
+
<CFOP>5201</CFOP>
|
380
|
+
<uCom>UN</uCom>
|
381
|
+
<qCom>16.0000</qCom>
|
382
|
+
<vUnCom>1.0800000000</vUnCom>
|
383
|
+
<vProd>17.28</vProd>
|
384
|
+
<cEANTrib />
|
385
|
+
<uTrib>UN</uTrib>
|
386
|
+
<qTrib>16.0000</qTrib>
|
387
|
+
<vUnTrib>1.0800000000</vUnTrib>
|
388
|
+
<indTot>1</indTot>
|
389
|
+
</prod>
|
390
|
+
<imposto>
|
391
|
+
<ICMS>
|
392
|
+
<ICMSSN900>
|
393
|
+
<orig>0</orig>
|
394
|
+
<CSOSN>900</CSOSN>
|
395
|
+
<modBC>3</modBC>
|
396
|
+
<vBC>17.28</vBC>
|
397
|
+
<pRedBC>100.0000</pRedBC>
|
398
|
+
<pICMS>0.0000</pICMS>
|
399
|
+
<vICMS>0.00</vICMS>
|
400
|
+
</ICMSSN900>
|
401
|
+
</ICMS>
|
402
|
+
<PIS>
|
403
|
+
<PISOutr>
|
404
|
+
<CST>99</CST>
|
405
|
+
<vBC>0.00</vBC>
|
406
|
+
<pPIS>0.0000</pPIS>
|
407
|
+
<vPIS>0.00</vPIS>
|
408
|
+
</PISOutr>
|
409
|
+
</PIS>
|
410
|
+
<COFINS>
|
411
|
+
<COFINSOutr>
|
412
|
+
<CST>99</CST>
|
413
|
+
<vBC>0.00</vBC>
|
414
|
+
<pCOFINS>0.0000</pCOFINS>
|
415
|
+
<vCOFINS>0.00</vCOFINS>
|
416
|
+
</COFINSOutr>
|
417
|
+
</COFINS>
|
418
|
+
</imposto>
|
419
|
+
</det>
|
420
|
+
<det nItem="9">
|
421
|
+
<prod>
|
422
|
+
<cProd>9</cProd>
|
423
|
+
<cEAN />
|
424
|
+
<xProd>Produto Com DIFAL</xProd>
|
425
|
+
<NCM />
|
426
|
+
<CFOP>5201</CFOP>
|
427
|
+
<uCom>UN</uCom>
|
428
|
+
<qCom>16.0000</qCom>
|
429
|
+
<vUnCom>1.0800000000</vUnCom>
|
430
|
+
<vProd>17.28</vProd>
|
431
|
+
<cEANTrib />
|
432
|
+
<uTrib>UN</uTrib>
|
433
|
+
<qTrib>16.0000</qTrib>
|
434
|
+
<vUnTrib>1.0800000000</vUnTrib>
|
435
|
+
<indTot>1</indTot>
|
436
|
+
</prod>
|
437
|
+
<imposto>
|
438
|
+
<ICMS>
|
439
|
+
<ICMSSN900>
|
440
|
+
<orig>0</orig>
|
441
|
+
<CSOSN>900</CSOSN>
|
442
|
+
<modBC>3</modBC>
|
443
|
+
<vBC>17.28</vBC>
|
444
|
+
<pRedBC>100.0000</pRedBC>
|
445
|
+
<pICMS>0.0000</pICMS>
|
446
|
+
<vICMS>0.00</vICMS>
|
447
|
+
</ICMSSN900>
|
448
|
+
</ICMS>
|
449
|
+
<ICMSUFDest>
|
450
|
+
<vBCUFDest>12000.53</vBCUFDest>
|
451
|
+
<pFCPUFDest>17.90</pFCPUFDest>
|
452
|
+
<pICMSUFDest>21.51</pICMSUFDest>
|
453
|
+
<pICMSInter>12.45</pICMSInter>
|
454
|
+
<pICMSInterPart>40</pICMSInterPart>
|
455
|
+
<vFCPUFDest>11002.35</vFCPUFDest>
|
456
|
+
<vICMSUFDest>19282.47</vICMSUFDest>
|
457
|
+
<vICMSUFRemet>12344.56</vICMSUFRemet>
|
458
|
+
</ICMSUFDest>
|
459
|
+
<PIS>
|
460
|
+
<PISOutr>
|
461
|
+
<CST>99</CST>
|
462
|
+
<vBC>0.00</vBC>
|
463
|
+
<pPIS>0.0000</pPIS>
|
464
|
+
<vPIS>0.00</vPIS>
|
465
|
+
</PISOutr>
|
466
|
+
</PIS>
|
467
|
+
<COFINS>
|
468
|
+
<COFINSOutr>
|
469
|
+
<CST>99</CST>
|
470
|
+
<vBC>0.00</vBC>
|
471
|
+
<pCOFINS>0.0000</pCOFINS>
|
472
|
+
<vCOFINS>0.00</vCOFINS>
|
473
|
+
</COFINSOutr>
|
474
|
+
</COFINS>
|
475
|
+
</imposto>
|
476
|
+
</det>
|
477
|
+
<total>
|
478
|
+
<ICMSTot>
|
479
|
+
<vBC>17.28</vBC>
|
480
|
+
<vICMS>0.00</vICMS>
|
481
|
+
<vICMSDeson>0.00</vICMSDeson>
|
482
|
+
<vBCST>17.98</vBCST>
|
483
|
+
<vST>0.59</vST>
|
484
|
+
<vProd>76.08</vProd>
|
485
|
+
<vFrete>0.00</vFrete>
|
486
|
+
<vSeg>0.00</vSeg>
|
487
|
+
<vDesc>0.00</vDesc>
|
488
|
+
<vII>0.00</vII>
|
489
|
+
<vIPI>0.00</vIPI>
|
490
|
+
<vPIS>0.00</vPIS>
|
491
|
+
<vCOFINS>0.00</vCOFINS>
|
492
|
+
<vOutro>0.00</vOutro>
|
493
|
+
<vNF>76.67</vNF>
|
494
|
+
</ICMSTot>
|
495
|
+
</total>
|
496
|
+
<transp>
|
497
|
+
<modFrete>0</modFrete>
|
498
|
+
</transp>
|
499
|
+
<cobr>
|
500
|
+
<fat>
|
501
|
+
<nFat>1</nFat>
|
502
|
+
</fat>
|
503
|
+
<dup>
|
504
|
+
<nDup>1</nDup>
|
505
|
+
<dVenc>2015-02-13</dVenc>
|
506
|
+
<vDup>25.56</vDup>
|
507
|
+
</dup>
|
508
|
+
<dup>
|
509
|
+
<nDup>2</nDup>
|
510
|
+
<dVenc>2015-03-15</dVenc>
|
511
|
+
<vDup>25.56</vDup>
|
512
|
+
</dup>
|
513
|
+
<dup>
|
514
|
+
<nDup>3</nDup>
|
515
|
+
<dVenc>2015-04-14</dVenc>
|
516
|
+
<vDup>25.55</vDup>
|
517
|
+
</dup>
|
518
|
+
</cobr>
|
519
|
+
<infAdic>
|
520
|
+
<infCpl>Teste Com Observacao * PERMITE O APROVEITAMENTO DO CREDITO DE ICMS NO VALOR DE R$ 0,00; CORRESPONDENTE A ALIQUOTA DE 0,00%; NOS TERMOS DO ARTIGO 23 DA LC 123/2006 * OPERACAO SUJEITA A SUBSTITUICAO TRIBUTARIA CONFORME ANEXO 3 DO RICMS/SC * DOCUMENTO EMITIDO POR ME OU EPP OPTANTE PELO SIMPLES NACIONAL * NAO GERA DIREITO A CREDITO FISCAL DE IPI</infCpl>
|
521
|
+
</infAdic>
|
522
|
+
</infNFe>
|
523
|
+
</NFe>
|
@@ -17,7 +17,7 @@ endobj
|
|
17
17
|
>>
|
18
18
|
endobj
|
19
19
|
4 0 obj
|
20
|
-
<< /Length
|
20
|
+
<< /Length 21897
|
21
21
|
>>
|
22
22
|
stream
|
23
23
|
q
|
@@ -1529,6 +1529,237 @@ S
|
|
1529
1529
|
[ ] 0 d
|
1530
1530
|
0.3 w
|
1531
1531
|
0.000 0.000 0.000 SCN
|
1532
|
+
[0.3 0.6] 0 d
|
1533
|
+
0.3 w
|
1534
|
+
0.000 0.000 0.000 SCN
|
1535
|
+
21.260 172.751 m
|
1536
|
+
63.780 172.751 l
|
1537
|
+
S
|
1538
|
+
[ ] 0 d
|
1539
|
+
0.3 w
|
1540
|
+
0.000 0.000 0.000 SCN
|
1541
|
+
|
1542
|
+
BT
|
1543
|
+
23.25984251968504 202.8336771653544 Td
|
1544
|
+
/F1.0 6 Tf
|
1545
|
+
[<39>] TJ
|
1546
|
+
ET
|
1547
|
+
|
1548
|
+
[0.3 0.6] 0 d
|
1549
|
+
0.3 w
|
1550
|
+
0.000 0.000 0.000 SCN
|
1551
|
+
63.780 172.751 m
|
1552
|
+
188.504 172.751 l
|
1553
|
+
S
|
1554
|
+
[ ] 0 d
|
1555
|
+
0.3 w
|
1556
|
+
0.000 0.000 0.000 SCN
|
1557
|
+
|
1558
|
+
BT
|
1559
|
+
65.77952755905513 202.8336771653544 Td
|
1560
|
+
/F1.0 6 Tf
|
1561
|
+
[<50726f6475746f20436f6d20444946> 74 <414c>] TJ
|
1562
|
+
ET
|
1563
|
+
|
1564
|
+
|
1565
|
+
BT
|
1566
|
+
65.77952755905513 196.1376771653544 Td
|
1567
|
+
/F1.0 6 Tf
|
1568
|
+
[<444946> 74 <414c3a20566c722042433a2031322e3030302c3533202a20566c722049434d532052656d65743a>] TJ
|
1569
|
+
ET
|
1570
|
+
|
1571
|
+
|
1572
|
+
BT
|
1573
|
+
65.77952755905513 189.4416771653544 Td
|
1574
|
+
/F1.0 6 Tf
|
1575
|
+
[<31322e3334342c3536202a20566c722049434d5320446573743a2031392e3238322c3437202a20566c72204643503a>] TJ
|
1576
|
+
ET
|
1577
|
+
|
1578
|
+
|
1579
|
+
BT
|
1580
|
+
65.77952755905513 182.7456771653544 Td
|
1581
|
+
/F1.0 6 Tf
|
1582
|
+
[<31312e3030322c3335202a204643503a2031372c393025202a2049434d533a2032312c353125202a>] TJ
|
1583
|
+
ET
|
1584
|
+
|
1585
|
+
|
1586
|
+
BT
|
1587
|
+
65.77952755905513 176.0496771653544 Td
|
1588
|
+
/F1.0 6 Tf
|
1589
|
+
[<49434d5320496e7465723a2031322c343525202a2049434d5320496e7465722050> 15 <6172743a20343025>] TJ
|
1590
|
+
ET
|
1591
|
+
|
1592
|
+
[0.3 0.6] 0 d
|
1593
|
+
0.3 w
|
1594
|
+
0.000 0.000 0.000 SCN
|
1595
|
+
188.504 172.751 m
|
1596
|
+
225.354 172.751 l
|
1597
|
+
S
|
1598
|
+
[ ] 0 d
|
1599
|
+
0.3 w
|
1600
|
+
0.000 0.000 0.000 SCN
|
1601
|
+
[0.3 0.6] 0 d
|
1602
|
+
0.3 w
|
1603
|
+
0.000 0.000 0.000 SCN
|
1604
|
+
225.354 172.751 m
|
1605
|
+
248.031 172.751 l
|
1606
|
+
S
|
1607
|
+
[ ] 0 d
|
1608
|
+
0.3 w
|
1609
|
+
0.000 0.000 0.000 SCN
|
1610
|
+
|
1611
|
+
BT
|
1612
|
+
227.35433070866142 202.8336771653544 Td
|
1613
|
+
/F1.0 6 Tf
|
1614
|
+
[<30393030>] TJ
|
1615
|
+
ET
|
1616
|
+
|
1617
|
+
[0.3 0.6] 0 d
|
1618
|
+
0.3 w
|
1619
|
+
0.000 0.000 0.000 SCN
|
1620
|
+
248.031 172.751 m
|
1621
|
+
276.378 172.751 l
|
1622
|
+
S
|
1623
|
+
[ ] 0 d
|
1624
|
+
0.3 w
|
1625
|
+
0.000 0.000 0.000 SCN
|
1626
|
+
|
1627
|
+
BT
|
1628
|
+
250.03149606299212 202.8336771653544 Td
|
1629
|
+
/F1.0 6 Tf
|
1630
|
+
[<35323031>] TJ
|
1631
|
+
ET
|
1632
|
+
|
1633
|
+
[0.3 0.6] 0 d
|
1634
|
+
0.3 w
|
1635
|
+
0.000 0.000 0.000 SCN
|
1636
|
+
276.378 172.751 m
|
1637
|
+
304.724 172.751 l
|
1638
|
+
S
|
1639
|
+
[ ] 0 d
|
1640
|
+
0.3 w
|
1641
|
+
0.000 0.000 0.000 SCN
|
1642
|
+
|
1643
|
+
BT
|
1644
|
+
278.37795275590554 202.8336771653544 Td
|
1645
|
+
/F1.0 6 Tf
|
1646
|
+
[<554e>] TJ
|
1647
|
+
ET
|
1648
|
+
|
1649
|
+
[0.3 0.6] 0 d
|
1650
|
+
0.3 w
|
1651
|
+
0.000 0.000 0.000 SCN
|
1652
|
+
304.724 172.751 m
|
1653
|
+
341.575 172.751 l
|
1654
|
+
S
|
1655
|
+
[ ] 0 d
|
1656
|
+
0.3 w
|
1657
|
+
0.000 0.000 0.000 SCN
|
1658
|
+
|
1659
|
+
BT
|
1660
|
+
327.0748031496063 202.8336771653544 Td
|
1661
|
+
/F1.0 6 Tf
|
1662
|
+
[<31362c3030>] TJ
|
1663
|
+
ET
|
1664
|
+
|
1665
|
+
[0.3 0.6] 0 d
|
1666
|
+
0.3 w
|
1667
|
+
0.000 0.000 0.000 SCN
|
1668
|
+
341.575 172.751 m
|
1669
|
+
384.094 172.751 l
|
1670
|
+
S
|
1671
|
+
[ ] 0 d
|
1672
|
+
0.3 w
|
1673
|
+
0.000 0.000 0.000 SCN
|
1674
|
+
|
1675
|
+
BT
|
1676
|
+
372.5944881889764 202.8336771653544 Td
|
1677
|
+
/F1.0 6 Tf
|
1678
|
+
[<312c3038>] TJ
|
1679
|
+
ET
|
1680
|
+
|
1681
|
+
[0.3 0.6] 0 d
|
1682
|
+
0.3 w
|
1683
|
+
0.000 0.000 0.000 SCN
|
1684
|
+
384.094 172.751 m
|
1685
|
+
426.614 172.751 l
|
1686
|
+
S
|
1687
|
+
[ ] 0 d
|
1688
|
+
0.3 w
|
1689
|
+
0.000 0.000 0.000 SCN
|
1690
|
+
|
1691
|
+
BT
|
1692
|
+
412.1141732283465 202.8336771653544 Td
|
1693
|
+
/F1.0 6 Tf
|
1694
|
+
[<31372c3238>] TJ
|
1695
|
+
ET
|
1696
|
+
|
1697
|
+
[0.3 0.6] 0 d
|
1698
|
+
0.3 w
|
1699
|
+
0.000 0.000 0.000 SCN
|
1700
|
+
426.614 172.751 m
|
1701
|
+
469.134 172.751 l
|
1702
|
+
S
|
1703
|
+
[ ] 0 d
|
1704
|
+
0.3 w
|
1705
|
+
0.000 0.000 0.000 SCN
|
1706
|
+
|
1707
|
+
BT
|
1708
|
+
454.63385826771656 202.8336771653544 Td
|
1709
|
+
/F1.0 6 Tf
|
1710
|
+
[<31372c3238>] TJ
|
1711
|
+
ET
|
1712
|
+
|
1713
|
+
[0.3 0.6] 0 d
|
1714
|
+
0.3 w
|
1715
|
+
0.000 0.000 0.000 SCN
|
1716
|
+
469.134 172.751 m
|
1717
|
+
497.480 172.751 l
|
1718
|
+
S
|
1719
|
+
[ ] 0 d
|
1720
|
+
0.3 w
|
1721
|
+
0.000 0.000 0.000 SCN
|
1722
|
+
|
1723
|
+
BT
|
1724
|
+
485.9803149606299 202.8336771653544 Td
|
1725
|
+
/F1.0 6 Tf
|
1726
|
+
[<302c3030>] TJ
|
1727
|
+
ET
|
1728
|
+
|
1729
|
+
[0.3 0.6] 0 d
|
1730
|
+
0.3 w
|
1731
|
+
0.000 0.000 0.000 SCN
|
1732
|
+
497.480 172.751 m
|
1733
|
+
525.827 172.751 l
|
1734
|
+
S
|
1735
|
+
[ ] 0 d
|
1736
|
+
0.3 w
|
1737
|
+
0.000 0.000 0.000 SCN
|
1738
|
+
[0.3 0.6] 0 d
|
1739
|
+
0.3 w
|
1740
|
+
0.000 0.000 0.000 SCN
|
1741
|
+
525.827 172.751 m
|
1742
|
+
551.339 172.751 l
|
1743
|
+
S
|
1744
|
+
[ ] 0 d
|
1745
|
+
0.3 w
|
1746
|
+
0.000 0.000 0.000 SCN
|
1747
|
+
|
1748
|
+
BT
|
1749
|
+
539.8385826771654 202.8336771653544 Td
|
1750
|
+
/F1.0 6 Tf
|
1751
|
+
[<302c3030>] TJ
|
1752
|
+
ET
|
1753
|
+
|
1754
|
+
[0.3 0.6] 0 d
|
1755
|
+
0.3 w
|
1756
|
+
0.000 0.000 0.000 SCN
|
1757
|
+
551.339 172.751 m
|
1758
|
+
575.717 172.751 l
|
1759
|
+
S
|
1760
|
+
[ ] 0 d
|
1761
|
+
0.3 w
|
1762
|
+
0.000 0.000 0.000 SCN
|
1532
1763
|
|
1533
1764
|
BT
|
1534
1765
|
236.9807244094489 662.5611968503937 Td
|
@@ -2791,17 +3022,17 @@ xref
|
|
2791
3022
|
0000000109 00000 n
|
2792
3023
|
0000000158 00000 n
|
2793
3024
|
0000000215 00000 n
|
2794
|
-
|
2795
|
-
|
2796
|
-
|
2797
|
-
|
2798
|
-
|
2799
|
-
|
3025
|
+
0000022165 00000 n
|
3026
|
+
0000022400 00000 n
|
3027
|
+
0000022918 00000 n
|
3028
|
+
0000023017 00000 n
|
3029
|
+
0000040865 00000 n
|
3030
|
+
0000040963 00000 n
|
2800
3031
|
trailer
|
2801
3032
|
<< /Size 11
|
2802
3033
|
/Root 2 0 R
|
2803
3034
|
/Info 1 0 R
|
2804
3035
|
>>
|
2805
3036
|
startxref
|
2806
|
-
|
3037
|
+
41064
|
2807
3038
|
%%EOF
|
@@ -308,6 +308,49 @@ describe BrDanfe::DanfeLib::DetBody do
|
|
308
308
|
end
|
309
309
|
end
|
310
310
|
|
311
|
+
context "with DIFAL" do
|
312
|
+
let(:xml_as_string) do
|
313
|
+
<<-eos
|
314
|
+
<NFe xmlns="http://www.portalfiscal.inf.br/nfe">
|
315
|
+
<infNFe Id="NFe25111012345678901234550020000134151000134151" versao="2.00">
|
316
|
+
<det nItem="1">
|
317
|
+
<prod>
|
318
|
+
<cProd>3</cProd>
|
319
|
+
<xProd>Produto Com DIFAL</xProd>
|
320
|
+
<NCM>45678901</NCM>
|
321
|
+
<CFOP>5401</CFOP>
|
322
|
+
<uCom>UN</uCom>
|
323
|
+
<qCom>6.0000</qCom>
|
324
|
+
<vUnCom>1.1312000000</vUnCom>
|
325
|
+
<vProd>6.79</vProd>
|
326
|
+
</prod>
|
327
|
+
<imposto>
|
328
|
+
<ICMSUFDest>
|
329
|
+
<vBCUFDest>12000.53</vBCUFDest>
|
330
|
+
<pFCPUFDest>17.90</pFCPUFDest>
|
331
|
+
<pICMSUFDest>21.51</pICMSUFDest>
|
332
|
+
<pICMSInter>12.45</pICMSInter>
|
333
|
+
<pICMSInterPart>40</pICMSInterPart>
|
334
|
+
<vFCPUFDest>11002.35</vFCPUFDest>
|
335
|
+
<vICMSUFDest>19282.47</vICMSUFDest>
|
336
|
+
<vICMSUFRemet>12344.56</vICMSUFRemet>
|
337
|
+
</ICMSUFDest>
|
338
|
+
</imposto>
|
339
|
+
</det>
|
340
|
+
</infNFe>
|
341
|
+
</NFe>
|
342
|
+
eos
|
343
|
+
end
|
344
|
+
|
345
|
+
it "renders xml to the pdf" do
|
346
|
+
expect(File.exist?(output_pdf)).to be_falsey
|
347
|
+
|
348
|
+
pdf.render_file output_pdf
|
349
|
+
|
350
|
+
expect("#{base_dir}det_body#render-difal.pdf").to have_same_content_of file: output_pdf
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
311
354
|
context "when the unit price of the product has a custom precision" do
|
312
355
|
subject { described_class.new(pdf, xml, options_custom_unit_price_precision) }
|
313
356
|
|
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.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ASSEINFO
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -223,6 +223,7 @@ files:
|
|
223
223
|
- spec/fixtures/nfe/lib/dest#render-with_ie.pdf
|
224
224
|
- spec/fixtures/nfe/lib/det_body#render-csosn.pdf
|
225
225
|
- spec/fixtures/nfe/lib/det_body#render-cst.pdf
|
226
|
+
- spec/fixtures/nfe/lib/det_body#render-difal.pdf
|
226
227
|
- spec/fixtures/nfe/lib/det_body#render-fci.pdf
|
227
228
|
- spec/fixtures/nfe/lib/det_body#render-icms_st.pdf
|
228
229
|
- spec/fixtures/nfe/lib/det_body#render-quantity_with_custom_precision.pdf
|
@@ -318,100 +319,4 @@ rubygems_version: 2.4.8
|
|
318
319
|
signing_key:
|
319
320
|
specification_version: 4
|
320
321
|
summary: DANFE pdf generator for Brazilian invoices.
|
321
|
-
test_files:
|
322
|
-
- spec/features/cce_spec.rb
|
323
|
-
- spec/features/danfe_spec.rb
|
324
|
-
- spec/fixtures/cce/lib/barcode#render.pdf
|
325
|
-
- spec/fixtures/cce/lib/correction#render.pdf
|
326
|
-
- spec/fixtures/cce/lib/document#box.pdf
|
327
|
-
- spec/fixtures/cce/lib/document#box.with.block.pdf
|
328
|
-
- spec/fixtures/cce/lib/document#text.align.pdf
|
329
|
-
- spec/fixtures/cce/lib/document#text.pad.pdf
|
330
|
-
- spec/fixtures/cce/lib/document#text.simple.pdf
|
331
|
-
- spec/fixtures/cce/lib/document#text.size.pdf
|
332
|
-
- spec/fixtures/cce/lib/document#text.style.pdf
|
333
|
-
- spec/fixtures/cce/lib/footer#render.pdf
|
334
|
-
- spec/fixtures/cce/lib/header#render.pdf
|
335
|
-
- spec/fixtures/cce/lib/nfe_key#render.pdf
|
336
|
-
- spec/fixtures/cce/lib/protocol#render.pdf
|
337
|
-
- spec/fixtures/cce/v1.00/cce.fixture.pdf
|
338
|
-
- spec/fixtures/cce/v1.00/cce.xml
|
339
|
-
- spec/fixtures/logo.png
|
340
|
-
- spec/fixtures/nfe/lib/dest#render-v2.00.pdf
|
341
|
-
- spec/fixtures/nfe/lib/dest#render-v3.10.pdf
|
342
|
-
- spec/fixtures/nfe/lib/dest#render-with_cnpj.pdf
|
343
|
-
- spec/fixtures/nfe/lib/dest#render-with_cpf.pdf
|
344
|
-
- spec/fixtures/nfe/lib/dest#render-with_ie.pdf
|
345
|
-
- spec/fixtures/nfe/lib/det_body#render-csosn.pdf
|
346
|
-
- spec/fixtures/nfe/lib/det_body#render-cst.pdf
|
347
|
-
- spec/fixtures/nfe/lib/det_body#render-fci.pdf
|
348
|
-
- spec/fixtures/nfe/lib/det_body#render-icms_st.pdf
|
349
|
-
- spec/fixtures/nfe/lib/det_body#render-quantity_with_custom_precision.pdf
|
350
|
-
- spec/fixtures/nfe/lib/det_body#render-unit_price_with_custom_precision.pdf
|
351
|
-
- spec/fixtures/nfe/lib/det_header#render.pdf
|
352
|
-
- spec/fixtures/nfe/lib/document#lcnpj-blank.pdf
|
353
|
-
- spec/fixtures/nfe/lib/document#lcnpj-invalid.pdf
|
354
|
-
- spec/fixtures/nfe/lib/document#lcnpj-valid.pdf
|
355
|
-
- spec/fixtures/nfe/lib/document#lie-blank.pdf
|
356
|
-
- spec/fixtures/nfe/lib/document#lie-invalid.pdf
|
357
|
-
- spec/fixtures/nfe/lib/document#lie-valid.pdf
|
358
|
-
- spec/fixtures/nfe/lib/dup#render.pdf
|
359
|
-
- spec/fixtures/nfe/lib/emit#render.pdf
|
360
|
-
- spec/fixtures/nfe/lib/emit_header#render-with_logo.pdf
|
361
|
-
- spec/fixtures/nfe/lib/emit_header#render-without_logo.pdf
|
362
|
-
- spec/fixtures/nfe/lib/icmstot#render.pdf
|
363
|
-
- spec/fixtures/nfe/lib/infadic#render-extra_volume.pdf
|
364
|
-
- spec/fixtures/nfe/lib/infadic#render.pdf
|
365
|
-
- spec/fixtures/nfe/lib/issqn#render.pdf
|
366
|
-
- spec/fixtures/nfe/lib/ticket#render.pdf
|
367
|
-
- spec/fixtures/nfe/lib/transp#render-modfrete_0.pdf
|
368
|
-
- spec/fixtures/nfe/lib/transp#render-modfrete_1.pdf
|
369
|
-
- spec/fixtures/nfe/lib/transp#render-modfrete_2.pdf
|
370
|
-
- spec/fixtures/nfe/lib/transp#render-modfrete_9.pdf
|
371
|
-
- spec/fixtures/nfe/lib/transp#render.pdf
|
372
|
-
- spec/fixtures/nfe/lib/vol#render-blank-boxes.pdf
|
373
|
-
- spec/fixtures/nfe/lib/vol#render.pdf
|
374
|
-
- spec/fixtures/nfe/v2.00/custom_options.fixture.pdf
|
375
|
-
- spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml
|
376
|
-
- spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf
|
377
|
-
- spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml
|
378
|
-
- spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf
|
379
|
-
- spec/fixtures/nfe/v2.00/nfe_with_fci.xml
|
380
|
-
- spec/fixtures/nfe/v2.00/nfe_with_fci.xml.fixture.pdf
|
381
|
-
- spec/fixtures/nfe/v2.00/nfe_with_logo.xml
|
382
|
-
- spec/fixtures/nfe/v2.00/nfe_with_ns.xml
|
383
|
-
- spec/fixtures/nfe/v2.00/nfe_with_ns.xml.fixture.pdf
|
384
|
-
- spec/fixtures/nfe/v2.00/nfe_without_ns.xml
|
385
|
-
- spec/fixtures/nfe/v2.00/nfe_without_ns.xml.fixture.pdf
|
386
|
-
- spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml
|
387
|
-
- spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf
|
388
|
-
- spec/lib/cce_lib/barcode_spec.rb
|
389
|
-
- spec/lib/cce_lib/correction_spec.rb
|
390
|
-
- spec/lib/cce_lib/document_spec.rb
|
391
|
-
- spec/lib/cce_lib/footer_spec.rb
|
392
|
-
- spec/lib/cce_lib/header_spec.rb
|
393
|
-
- spec/lib/cce_lib/nfe_key_spec.rb
|
394
|
-
- spec/lib/cce_lib/protocol_spec.rb
|
395
|
-
- spec/lib/danfe_lib/cep_spec.rb
|
396
|
-
- spec/lib/danfe_lib/cst_spec.rb
|
397
|
-
- spec/lib/danfe_lib/dest_spec.rb
|
398
|
-
- spec/lib/danfe_lib/det_body_spec.rb
|
399
|
-
- spec/lib/danfe_lib/det_header_spec.rb
|
400
|
-
- spec/lib/danfe_lib/document_spec.rb
|
401
|
-
- spec/lib/danfe_lib/dup_spec.rb
|
402
|
-
- spec/lib/danfe_lib/emit_header_spec.rb
|
403
|
-
- spec/lib/danfe_lib/emit_spec.rb
|
404
|
-
- spec/lib/danfe_lib/helper_spec.rb
|
405
|
-
- spec/lib/danfe_lib/icmstot_spec.rb
|
406
|
-
- spec/lib/danfe_lib/infadic_spec.rb
|
407
|
-
- spec/lib/danfe_lib/issqn_spec.rb
|
408
|
-
- spec/lib/danfe_lib/options_spec.rb
|
409
|
-
- spec/lib/danfe_lib/phone_spec.rb
|
410
|
-
- spec/lib/danfe_lib/plate_spec.rb
|
411
|
-
- spec/lib/danfe_lib/ticket_spec.rb
|
412
|
-
- spec/lib/danfe_lib/transp_spec.rb
|
413
|
-
- spec/lib/danfe_lib/vol_spec.rb
|
414
|
-
- spec/lib/danfe_lib/xml_spec.rb
|
415
|
-
- spec/lib/danfe_lib/xprod_spec.rb
|
416
|
-
- spec/spec_helper.rb
|
417
|
-
- spec/support/have_same_content_of.rb
|
322
|
+
test_files: []
|