br_danfe 0.19.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +1 -1
- data/Gemfile.lock +21 -19
- data/br_danfe.gemspec +4 -4
- data/config/locales/pt-BR.yml +15 -0
- data/lib/br_danfe/danfe_lib/nfe.rb +5 -3
- data/lib/br_danfe/danfe_lib/nfe_lib/dest.rb +1 -1
- data/lib/br_danfe/danfe_lib/nfe_lib/det_body.rb +6 -1
- data/lib/br_danfe/danfe_lib/nfe_lib/dup.rb +8 -4
- data/lib/br_danfe/danfe_lib/nfe_lib/entrega.rb +86 -0
- data/lib/br_danfe/danfe_lib/nfe_lib/helper.rb +4 -4
- data/lib/br_danfe/danfe_lib/nfe_lib/icmstot.rb +8 -4
- data/lib/br_danfe/danfe_lib/nfe_lib/infadic.rb +3 -19
- data/lib/br_danfe/danfe_lib/nfe_lib/issqn.rb +4 -2
- data/lib/br_danfe/danfe_lib/nfe_lib/transp.rb +8 -4
- data/lib/br_danfe/danfe_lib/nfe_lib/vol.rb +6 -2
- data/lib/br_danfe/logo_config.rb +4 -15
- data/lib/br_danfe/version.rb +1 -1
- data/lib/br_danfe.rb +0 -1
- data/spec/br_danfe/danfe_lib/nfe_lib/det_body_spec.rb +73 -0
- data/spec/br_danfe/danfe_lib/nfe_lib/dup_spec.rb +50 -0
- data/spec/br_danfe/danfe_lib/nfe_lib/entrega_spec.rb +186 -0
- data/spec/br_danfe/danfe_lib/nfe_lib/helper_spec.rb +23 -4
- data/spec/br_danfe/danfe_lib/nfe_lib/icmstot_spec.rb +46 -0
- data/spec/br_danfe/danfe_lib/nfe_lib/infadic_spec.rb +0 -41
- data/spec/br_danfe/danfe_lib/nfe_lib/issqn_spec.rb +49 -0
- data/spec/br_danfe/danfe_lib/nfe_lib/transp_spec.rb +49 -0
- data/spec/br_danfe/danfe_lib/nfe_lib/vol_spec.rb +59 -0
- data/spec/br_danfe/danfe_lib/nfe_spec.rb +11 -0
- data/spec/br_danfe/logo_config_spec.rb +6 -8
- data/spec/fixtures/nfe/lib/det_body#render-with_entrega.pdf +1110 -0
- data/spec/fixtures/nfe/lib/dup#render-with_entrega.pdf +0 -0
- data/spec/fixtures/nfe/lib/entrega#render-v2.00.pdf +0 -0
- data/spec/fixtures/nfe/lib/entrega#render-with-address-bigger.pdf +0 -0
- data/spec/fixtures/nfe/lib/entrega#render-with_cpf.pdf +0 -0
- data/spec/fixtures/nfe/lib/entrega#render-without-address-complement.pdf +0 -0
- data/spec/fixtures/nfe/lib/icmstot#render-with_entrega.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-all_the_informations.pdf +0 -0
- data/spec/fixtures/nfe/lib/issqn#render-with_entrega.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-with_entrega.pdf +0 -0
- data/spec/fixtures/nfe/lib/vol#render-with_entrega.pdf +0 -0
- data/spec/fixtures/nfe/v2.00/nfe_with_entrega.xml +260 -0
- data/spec/fixtures/nfe/v2.00/nfe_with_entrega.xml.fixture.pdf +3413 -0
- metadata +28 -14
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,260 @@
|
|
1
|
+
<NFe xmlns="http://www.portalfiscal.inf.br/nfe">
|
2
|
+
<infNFe versao="2.00" Id="NFe35131260891033000109550010000000011000000016">
|
3
|
+
<ide>
|
4
|
+
<cUF>35</cUF>
|
5
|
+
<cNF>00000001</cNF>
|
6
|
+
<natOp>6101-Venda de producao do estabelecimento</natOp>
|
7
|
+
<indPag>1</indPag>
|
8
|
+
<mod>55</mod>
|
9
|
+
<serie>1</serie>
|
10
|
+
<nNF>1</nNF>
|
11
|
+
<dEmi>2013-12-28</dEmi>
|
12
|
+
<tpNF>1</tpNF>
|
13
|
+
<cMunFG>3550308</cMunFG>
|
14
|
+
<tpImp>1</tpImp>
|
15
|
+
<tpEmis>1</tpEmis>
|
16
|
+
<cDV>6</cDV>
|
17
|
+
<tpAmb>1</tpAmb>
|
18
|
+
<finNFe>1</finNFe>
|
19
|
+
<procEmi>0</procEmi>
|
20
|
+
<verProc>1</verProc>
|
21
|
+
</ide>
|
22
|
+
<emit>
|
23
|
+
<CNPJ>60891033000109</CNPJ>
|
24
|
+
<xNome>KRON INSTRUMENTOS ELETRICOS LTDA</xNome>
|
25
|
+
<xFant>KRON INSTRUMENTOS ELETRICOS LTDA</xFant>
|
26
|
+
<enderEmit>
|
27
|
+
<xLgr>RUA ALEXANDRE DE GUSMAO</xLgr>
|
28
|
+
<nro>278</nro>
|
29
|
+
<xBairro>SOCORRO</xBairro>
|
30
|
+
<cMun>3550308</cMun>
|
31
|
+
<xMun>SAO PAULO</xMun>
|
32
|
+
<UF>SP</UF>
|
33
|
+
<CEP>04760020</CEP>
|
34
|
+
<cPais>1058</cPais>
|
35
|
+
<xPais>BRASIL</xPais>
|
36
|
+
<fone>1155252000</fone>
|
37
|
+
</enderEmit>
|
38
|
+
<IE>111393871117</IE>
|
39
|
+
<CRT>1</CRT>
|
40
|
+
</emit>
|
41
|
+
<dest>
|
42
|
+
<CNPJ>82743287000880</CNPJ>
|
43
|
+
<xNome>Schneider Electric Brasil Ltda</xNome>
|
44
|
+
<enderDest>
|
45
|
+
<xLgr>Av da Saudade</xLgr>
|
46
|
+
<nro>1125</nro>
|
47
|
+
<xBairro>Frutal</xBairro>
|
48
|
+
<cMun>3552403</cMun>
|
49
|
+
<xMun>SUMARE</xMun>
|
50
|
+
<UF>SP</UF>
|
51
|
+
<CEP>13171320</CEP>
|
52
|
+
<cPais>1058</cPais>
|
53
|
+
<xPais>BRASIL</xPais>
|
54
|
+
<fone>1921046300</fone>
|
55
|
+
</enderDest>
|
56
|
+
<IE>671008375110</IE>
|
57
|
+
</dest>
|
58
|
+
<entrega>
|
59
|
+
<CNPJ>82743287000880</CNPJ>
|
60
|
+
<xNome>Schneider Electric Brasil Ltda</xNome>
|
61
|
+
<xLgr>Av da Saudade</xLgr>
|
62
|
+
<nro>1125</nro>
|
63
|
+
<xBairro>Frutal</xBairro>
|
64
|
+
<xCpl>Sala 01 e 02</xCpl>
|
65
|
+
<cMun>3552403</cMun>
|
66
|
+
<xMun>SUMARE</xMun>
|
67
|
+
<UF>SP</UF>
|
68
|
+
<CEP>13171320</CEP>
|
69
|
+
<fone>1921046300</fone>
|
70
|
+
<IE>671008375110</IE>
|
71
|
+
</entrega>
|
72
|
+
<det nItem="1">
|
73
|
+
<prod>
|
74
|
+
<cProd>1</cProd>
|
75
|
+
<cEAN/>
|
76
|
+
<xProd>Tijolo Macico Tipo A</xProd>
|
77
|
+
<NCM>69041000</NCM>
|
78
|
+
<EXTIPI>00</EXTIPI>
|
79
|
+
<CFOP>6101</CFOP>
|
80
|
+
<uCom>MI</uCom>
|
81
|
+
<qCom>2.00</qCom>
|
82
|
+
<vUnCom>10.00</vUnCom>
|
83
|
+
<vProd>20.00</vProd>
|
84
|
+
<cEANTrib/>
|
85
|
+
<uTrib>MI</uTrib>
|
86
|
+
<qTrib>2.00</qTrib>
|
87
|
+
<vUnTrib>10.00</vUnTrib>
|
88
|
+
<indTot>1</indTot>
|
89
|
+
</prod>
|
90
|
+
<imposto>
|
91
|
+
<vTotTrib>5.35</vTotTrib>
|
92
|
+
<ICMS>
|
93
|
+
<ICMSSN102>
|
94
|
+
<orig>0</orig>
|
95
|
+
<CSOSN>102</CSOSN>
|
96
|
+
</ICMSSN102>
|
97
|
+
</ICMS>
|
98
|
+
<PIS>
|
99
|
+
<PISOutr>
|
100
|
+
<CST>99</CST>
|
101
|
+
<vBC>0.00</vBC>
|
102
|
+
<pPIS>0.00</pPIS>
|
103
|
+
<vPIS>0.00</vPIS>
|
104
|
+
</PISOutr>
|
105
|
+
</PIS>
|
106
|
+
<COFINS>
|
107
|
+
<COFINSOutr>
|
108
|
+
<CST>99</CST>
|
109
|
+
<vBC>0.00</vBC>
|
110
|
+
<pCOFINS>0.00</pCOFINS>
|
111
|
+
<vCOFINS>0.00</vCOFINS>
|
112
|
+
</COFINSOutr>
|
113
|
+
</COFINS>
|
114
|
+
</imposto>
|
115
|
+
</det>
|
116
|
+
<det nItem="2">
|
117
|
+
<prod>
|
118
|
+
<cProd>2</cProd>
|
119
|
+
<cEAN/>
|
120
|
+
<xProd>Tijolo Macico Tipo B</xProd>
|
121
|
+
<NCM>69041000</NCM>
|
122
|
+
<EXTIPI>00</EXTIPI>
|
123
|
+
<CFOP>6101</CFOP>
|
124
|
+
<uCom>MI</uCom>
|
125
|
+
<qCom>3.00</qCom>
|
126
|
+
<vUnCom>20.00</vUnCom>
|
127
|
+
<vProd>60.00</vProd>
|
128
|
+
<cEANTrib/>
|
129
|
+
<uTrib>MI</uTrib>
|
130
|
+
<qTrib>3.00</qTrib>
|
131
|
+
<vUnTrib>20.00</vUnTrib>
|
132
|
+
<indTot>1</indTot>
|
133
|
+
</prod>
|
134
|
+
<imposto>
|
135
|
+
<vTotTrib>16.05</vTotTrib>
|
136
|
+
<ICMS>
|
137
|
+
<ICMSSN102>
|
138
|
+
<orig>0</orig>
|
139
|
+
<CSOSN>102</CSOSN>
|
140
|
+
</ICMSSN102>
|
141
|
+
</ICMS>
|
142
|
+
<PIS>
|
143
|
+
<PISOutr>
|
144
|
+
<CST>99</CST>
|
145
|
+
<vBC>0.00</vBC>
|
146
|
+
<pPIS>0.00</pPIS>
|
147
|
+
<vPIS>0.00</vPIS>
|
148
|
+
</PISOutr>
|
149
|
+
</PIS>
|
150
|
+
<COFINS>
|
151
|
+
<COFINSOutr>
|
152
|
+
<CST>99</CST>
|
153
|
+
<vBC>0.00</vBC>
|
154
|
+
<pCOFINS>0.00</pCOFINS>
|
155
|
+
<vCOFINS>0.00</vCOFINS>
|
156
|
+
</COFINSOutr>
|
157
|
+
</COFINS>
|
158
|
+
</imposto>
|
159
|
+
</det>
|
160
|
+
<det nItem="3">
|
161
|
+
<prod>
|
162
|
+
<cProd>3</cProd>
|
163
|
+
<cEAN/>
|
164
|
+
<xProd>Tijolo Macico Tipo C</xProd>
|
165
|
+
<NCM>69041000</NCM>
|
166
|
+
<EXTIPI>00</EXTIPI>
|
167
|
+
<CFOP>6101</CFOP>
|
168
|
+
<uCom>MI</uCom>
|
169
|
+
<qCom>4.00</qCom>
|
170
|
+
<vUnCom>30.00</vUnCom>
|
171
|
+
<vProd>120.00</vProd>
|
172
|
+
<cEANTrib/>
|
173
|
+
<uTrib>MI</uTrib>
|
174
|
+
<qTrib>4.00</qTrib>
|
175
|
+
<vUnTrib>30.00</vUnTrib>
|
176
|
+
<indTot>1</indTot>
|
177
|
+
</prod>
|
178
|
+
<imposto>
|
179
|
+
<vTotTrib>32.10</vTotTrib>
|
180
|
+
<ICMS>
|
181
|
+
<ICMSSN102>
|
182
|
+
<orig>0</orig>
|
183
|
+
<CSOSN>102</CSOSN>
|
184
|
+
</ICMSSN102>
|
185
|
+
</ICMS>
|
186
|
+
<PIS>
|
187
|
+
<PISOutr>
|
188
|
+
<CST>99</CST>
|
189
|
+
<vBC>0.00</vBC>
|
190
|
+
<pPIS>0.00</pPIS>
|
191
|
+
<vPIS>0.00</vPIS>
|
192
|
+
</PISOutr>
|
193
|
+
</PIS>
|
194
|
+
<COFINS>
|
195
|
+
<COFINSOutr>
|
196
|
+
<CST>99</CST>
|
197
|
+
<vBC>0.00</vBC>
|
198
|
+
<pCOFINS>0.00</pCOFINS>
|
199
|
+
<vCOFINS>0.00</vCOFINS>
|
200
|
+
</COFINSOutr>
|
201
|
+
</COFINS>
|
202
|
+
</imposto>
|
203
|
+
</det>
|
204
|
+
<total>
|
205
|
+
<ICMSTot>
|
206
|
+
<vBC>0.00</vBC>
|
207
|
+
<vICMS>0.00</vICMS>
|
208
|
+
<vBCST>0.00</vBCST>
|
209
|
+
<vST>0.00</vST>
|
210
|
+
<vProd>200.00</vProd>
|
211
|
+
<vFrete>0.00</vFrete>
|
212
|
+
<vSeg>0.00</vSeg>
|
213
|
+
<vDesc>0.00</vDesc>
|
214
|
+
<vII>0.00</vII>
|
215
|
+
<vIPI>0.00</vIPI>
|
216
|
+
<vPIS>0.00</vPIS>
|
217
|
+
<vCOFINS>0.00</vCOFINS>
|
218
|
+
<vOutro>0.00</vOutro>
|
219
|
+
<vNF>200.00</vNF>
|
220
|
+
<vTotTrib>53.50</vTotTrib>
|
221
|
+
</ICMSTot>
|
222
|
+
</total>
|
223
|
+
<transp>
|
224
|
+
<modFrete>0</modFrete>
|
225
|
+
</transp>
|
226
|
+
<cobr>
|
227
|
+
<fat>
|
228
|
+
<nFat>1</nFat>
|
229
|
+
</fat>
|
230
|
+
<dup>
|
231
|
+
<nDup>1</nDup>
|
232
|
+
<dVenc>2014-01-27</dVenc>
|
233
|
+
<vDup>40.00</vDup>
|
234
|
+
</dup>
|
235
|
+
<dup>
|
236
|
+
<nDup>2</nDup>
|
237
|
+
<dVenc>2014-02-26</dVenc>
|
238
|
+
<vDup>40.00</vDup>
|
239
|
+
</dup>
|
240
|
+
<dup>
|
241
|
+
<nDup>3</nDup>
|
242
|
+
<dVenc>2014-03-28</dVenc>
|
243
|
+
<vDup>40.00</vDup>
|
244
|
+
</dup>
|
245
|
+
<dup>
|
246
|
+
<nDup>4</nDup>
|
247
|
+
<dVenc>2014-04-27</dVenc>
|
248
|
+
<vDup>40.00</vDup>
|
249
|
+
</dup>
|
250
|
+
<dup>
|
251
|
+
<nDup>5</nDup>
|
252
|
+
<dVenc>2014-05-27</dVenc>
|
253
|
+
<vDup>40.00</vDup>
|
254
|
+
</dup>
|
255
|
+
</cobr>
|
256
|
+
<infAdic>
|
257
|
+
<infCpl>DOCUMENTO EMITIDO POR ME OU EPP OPTANTE PELO SIMPLES NACIONAL * NAO GERA DIREITO A CREDITO FISCAL DE IPI * Tributos: R$ 53,50 (26,75%)</infCpl>
|
258
|
+
</infAdic>
|
259
|
+
</infNFe>
|
260
|
+
</NFe>
|