br_danfe 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/lib/br_danfe/danfe.rb +1 -1
  3. data/lib/br_danfe/danfe_lib/dest.rb +8 -8
  4. data/lib/br_danfe/danfe_lib/det_body.rb +3 -3
  5. data/lib/br_danfe/danfe_lib/det_header.rb +18 -18
  6. data/lib/br_danfe/danfe_lib/dup.rb +4 -4
  7. data/lib/br_danfe/danfe_lib/emit.rb +5 -5
  8. data/lib/br_danfe/danfe_lib/emit_header.rb +14 -14
  9. data/lib/br_danfe/danfe_lib/helper.rb +1 -1
  10. data/lib/br_danfe/danfe_lib/icmstot.rb +6 -6
  11. data/lib/br_danfe/danfe_lib/infadic.rb +9 -9
  12. data/lib/br_danfe/danfe_lib/issqn.rb +4 -4
  13. data/lib/br_danfe/danfe_lib/ticket.rb +4 -4
  14. data/lib/br_danfe/danfe_lib/transp.rb +6 -6
  15. data/lib/br_danfe/danfe_lib/vol.rb +3 -3
  16. data/lib/br_danfe/version.rb +1 -1
  17. data/spec/fixtures/nfe/lib/dest#render-v2.00.pdf +44 -44
  18. data/spec/fixtures/nfe/lib/dest#render-v3.10.pdf +44 -44
  19. data/spec/fixtures/nfe/lib/dest#render-with_cnpj.pdf +34 -34
  20. data/spec/fixtures/nfe/lib/dest#render-with_cpf.pdf +34 -34
  21. data/spec/fixtures/nfe/lib/dest#render-with_ie.pdf +35 -35
  22. data/spec/fixtures/nfe/lib/det_body#render-csosn.pdf +159 -159
  23. data/spec/fixtures/nfe/lib/det_body#render-cst.pdf +88 -88
  24. data/spec/fixtures/nfe/lib/det_body#render-fci.pdf +50 -43
  25. data/spec/fixtures/nfe/lib/det_body#render-icms_st.pdf +45 -45
  26. data/spec/fixtures/nfe/lib/det_header#render.pdf +36 -36
  27. data/spec/fixtures/nfe/lib/document#lcnpj-blank.pdf +6 -6
  28. data/spec/fixtures/nfe/lib/document#lcnpj-invalid.pdf +6 -6
  29. data/spec/fixtures/nfe/lib/document#lcnpj-valid.pdf +7 -7
  30. data/spec/fixtures/nfe/lib/document#lie-blank.pdf +6 -6
  31. data/spec/fixtures/nfe/lib/document#lie-invalid.pdf +6 -6
  32. data/spec/fixtures/nfe/lib/document#lie-valid.pdf +7 -7
  33. data/spec/fixtures/nfe/lib/dup#render.pdf +26 -26
  34. data/spec/fixtures/nfe/lib/emit#render.pdf +19 -19
  35. data/spec/fixtures/nfe/lib/emit_header#render-with_logo.pdf +485 -485
  36. data/spec/fixtures/nfe/lib/emit_header#render-without_logo.pdf +482 -482
  37. data/spec/fixtures/nfe/lib/icmstot#render.pdf +39 -39
  38. data/spec/fixtures/nfe/lib/infadic#render-extra_volume.pdf +38 -38
  39. data/spec/fixtures/nfe/lib/infadic#render.pdf +6 -6
  40. data/spec/fixtures/nfe/lib/issqn#render.pdf +18 -18
  41. data/spec/fixtures/nfe/lib/ticket#render.pdf +14 -14
  42. data/spec/fixtures/nfe/lib/transp#render-modfrete_0.pdf +27 -27
  43. data/spec/fixtures/nfe/lib/transp#render-modfrete_1.pdf +27 -27
  44. data/spec/fixtures/nfe/lib/transp#render-modfrete_2.pdf +27 -27
  45. data/spec/fixtures/nfe/lib/transp#render-modfrete_9.pdf +27 -27
  46. data/spec/fixtures/nfe/lib/transp#render.pdf +36 -36
  47. data/spec/fixtures/nfe/lib/vol#render-blank-boxes.pdf +16 -16
  48. data/spec/fixtures/nfe/lib/vol#render.pdf +21 -21
  49. data/spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf +354 -354
  50. data/spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf +1456 -1456
  51. data/spec/fixtures/nfe/v2.00/nfe_with_fci.xml.fixture.pdf +743 -736
  52. data/spec/fixtures/nfe/v2.00/nfe_with_ns.xml.fixture.pdf +1438 -1431
  53. data/spec/fixtures/nfe/v2.00/nfe_without_ns.xml.fixture.pdf +803 -803
  54. data/spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf +531 -531
  55. data/spec/lib/danfe_lib/document_spec.rb +6 -6
  56. data/spec/lib/danfe_lib/transp_spec.rb +1 -1
  57. metadata +3 -3
@@ -17,7 +17,7 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 2500
20
+ << /Length 2572
21
21
  >>
22
22
  stream
23
23
  q
@@ -26,15 +26,15 @@ q
26
26
  0.3 w
27
27
  /DeviceRGB CS
28
28
  0.000 0.000 0.000 SCN
29
- 7.087 317.096 m
30
- 63.780 317.096 l
29
+ 21.260 298.495 m
30
+ 63.780 298.495 l
31
31
  S
32
32
  [ ] 0 d
33
33
  0.3 w
34
34
  0.000 0.000 0.000 SCN
35
35
 
36
36
  BT
37
- 9.086614173228348 327.09118897637796 Td
37
+ 23.25984251968504 315.18567716535443 Td
38
38
  /F1.0 6 Tf
39
39
  [<524546203036>] TJ
40
40
  ET
@@ -42,38 +42,45 @@ ET
42
42
  [0.3 0.6] 0 d
43
43
  0.3 w
44
44
  0.000 0.000 0.000 SCN
45
- 63.780 317.096 m
46
- 202.677 317.096 l
45
+ 63.780 298.495 m
46
+ 188.504 298.495 l
47
47
  S
48
48
  [ ] 0 d
49
49
  0.3 w
50
50
  0.000 0.000 0.000 SCN
51
51
 
52
52
  BT
53
- 65.77952755905513 327.09118897637796 Td
53
+ 65.77952755905513 315.18567716535443 Td
54
54
  /F1.0 6 Tf
55
55
  [<50726f6475746f20636f6d20464349>] TJ
56
56
  ET
57
57
 
58
58
 
59
59
  BT
60
- 65.77952755905513 320.395188976378 Td
60
+ 65.77952755905513 308.48967716535446 Td
61
61
  /F1.0 6 Tf
62
- [<4643493a2031323233323533312d373442322d344644442d383741362d434630414433453535333836>] TJ
62
+ [<4643493a2031323233323533312d373442322d344644442d383741362d>] TJ
63
+ ET
64
+
65
+
66
+ BT
67
+ 65.77952755905513 301.79367716535444 Td
68
+ /F1.0 6 Tf
69
+ [<434630414433453535333836>] TJ
63
70
  ET
64
71
 
65
72
  [0.3 0.6] 0 d
66
73
  0.3 w
67
74
  0.000 0.000 0.000 SCN
68
- 202.677 317.096 m
69
- 239.528 317.096 l
75
+ 188.504 298.495 m
76
+ 225.354 298.495 l
70
77
  S
71
78
  [ ] 0 d
72
79
  0.3 w
73
80
  0.000 0.000 0.000 SCN
74
81
 
75
82
  BT
76
- 204.67716535433075 327.09118897637796 Td
83
+ 190.50393700787401 315.18567716535443 Td
77
84
  /F1.0 6 Tf
78
85
  [<3930333033333239>] TJ
79
86
  ET
@@ -81,15 +88,15 @@ ET
81
88
  [0.3 0.6] 0 d
82
89
  0.3 w
83
90
  0.000 0.000 0.000 SCN
84
- 239.528 317.096 m
85
- 262.205 317.096 l
91
+ 225.354 298.495 m
92
+ 248.031 298.495 l
86
93
  S
87
94
  [ ] 0 d
88
95
  0.3 w
89
96
  0.000 0.000 0.000 SCN
90
97
 
91
98
  BT
92
- 241.52755905511816 327.09118897637796 Td
99
+ 227.35433070866142 315.18567716535443 Td
93
100
  /F1.0 6 Tf
94
101
  [<303030>] TJ
95
102
  ET
@@ -97,15 +104,15 @@ ET
97
104
  [0.3 0.6] 0 d
98
105
  0.3 w
99
106
  0.000 0.000 0.000 SCN
100
- 262.205 317.096 m
101
- 290.551 317.096 l
107
+ 248.031 298.495 m
108
+ 276.378 298.495 l
102
109
  S
103
110
  [ ] 0 d
104
111
  0.3 w
105
112
  0.000 0.000 0.000 SCN
106
113
 
107
114
  BT
108
- 264.2047244094488 327.09118897637796 Td
115
+ 250.03149606299212 315.18567716535443 Td
109
116
  /F1.0 6 Tf
110
117
  [<35313031>] TJ
111
118
  ET
@@ -113,15 +120,15 @@ ET
113
120
  [0.3 0.6] 0 d
114
121
  0.3 w
115
122
  0.000 0.000 0.000 SCN
116
- 290.551 317.096 m
117
- 318.898 317.096 l
123
+ 276.378 298.495 m
124
+ 304.724 298.495 l
118
125
  S
119
126
  [ ] 0 d
120
127
  0.3 w
121
128
  0.000 0.000 0.000 SCN
122
129
 
123
130
  BT
124
- 292.5511811023622 327.09118897637796 Td
131
+ 278.37795275590554 315.18567716535443 Td
125
132
  /F1.0 6 Tf
126
133
  [<5043>] TJ
127
134
  ET
@@ -129,15 +136,15 @@ ET
129
136
  [0.3 0.6] 0 d
130
137
  0.3 w
131
138
  0.000 0.000 0.000 SCN
132
- 318.898 317.096 m
133
- 355.748 317.096 l
139
+ 304.724 298.495 m
140
+ 341.575 298.495 l
134
141
  S
135
142
  [ ] 0 d
136
143
  0.3 w
137
144
  0.000 0.000 0.000 SCN
138
145
 
139
146
  BT
140
- 344.24803149606294 327.09118897637796 Td
147
+ 330.0748031496063 315.18567716535443 Td
141
148
  /F1.0 6 Tf
142
149
  [<312c3030>] TJ
143
150
  ET
@@ -145,15 +152,15 @@ ET
145
152
  [0.3 0.6] 0 d
146
153
  0.3 w
147
154
  0.000 0.000 0.000 SCN
148
- 355.748 317.096 m
149
- 398.268 317.096 l
155
+ 341.575 298.495 m
156
+ 384.094 298.495 l
150
157
  S
151
158
  [ ] 0 d
152
159
  0.3 w
153
160
  0.000 0.000 0.000 SCN
154
161
 
155
162
  BT
156
- 383.767716535433 327.09118897637796 Td
163
+ 369.5944881889764 315.18567716535443 Td
157
164
  /F1.0 6 Tf
158
165
  [<34392c3233>] TJ
159
166
  ET
@@ -161,15 +168,15 @@ ET
161
168
  [0.3 0.6] 0 d
162
169
  0.3 w
163
170
  0.000 0.000 0.000 SCN
164
- 398.268 317.096 m
165
- 440.787 317.096 l
171
+ 384.094 298.495 m
172
+ 426.614 298.495 l
166
173
  S
167
174
  [ ] 0 d
168
175
  0.3 w
169
176
  0.000 0.000 0.000 SCN
170
177
 
171
178
  BT
172
- 426.2874015748031 327.09118897637796 Td
179
+ 412.1141732283465 315.18567716535443 Td
173
180
  /F1.0 6 Tf
174
181
  [<34392c3233>] TJ
175
182
  ET
@@ -177,8 +184,8 @@ ET
177
184
  [0.3 0.6] 0 d
178
185
  0.3 w
179
186
  0.000 0.000 0.000 SCN
180
- 440.787 317.096 m
181
- 483.307 317.096 l
187
+ 426.614 298.495 m
188
+ 469.134 298.495 l
182
189
  S
183
190
  [ ] 0 d
184
191
  0.3 w
@@ -186,8 +193,8 @@ S
186
193
  [0.3 0.6] 0 d
187
194
  0.3 w
188
195
  0.000 0.000 0.000 SCN
189
- 483.307 317.096 m
190
- 511.654 317.096 l
196
+ 469.134 298.495 m
197
+ 497.480 298.495 l
191
198
  S
192
199
  [ ] 0 d
193
200
  0.3 w
@@ -195,8 +202,8 @@ S
195
202
  [0.3 0.6] 0 d
196
203
  0.3 w
197
204
  0.000 0.000 0.000 SCN
198
- 511.654 317.096 m
199
- 540.000 317.096 l
205
+ 497.480 298.495 m
206
+ 525.827 298.495 l
200
207
  S
201
208
  [ ] 0 d
202
209
  0.3 w
@@ -204,8 +211,8 @@ S
204
211
  [0.3 0.6] 0 d
205
212
  0.3 w
206
213
  0.000 0.000 0.000 SCN
207
- 540.000 317.096 m
208
- 565.512 317.096 l
214
+ 525.827 298.495 m
215
+ 551.339 298.495 l
209
216
  S
210
217
  [ ] 0 d
211
218
  0.3 w
@@ -213,8 +220,8 @@ S
213
220
  [0.3 0.6] 0 d
214
221
  0.3 w
215
222
  0.000 0.000 0.000 SCN
216
- 565.512 317.096 m
217
- 589.890 317.096 l
223
+ 551.339 298.495 m
224
+ 575.717 298.495 l
218
225
  S
219
226
  [ ] 0 d
220
227
  0.3 w
@@ -248,13 +255,13 @@ xref
248
255
  0000000109 00000 n
249
256
  0000000158 00000 n
250
257
  0000000215 00000 n
251
- 0000002767 00000 n
252
- 0000002947 00000 n
258
+ 0000002839 00000 n
259
+ 0000003019 00000 n
253
260
  trailer
254
261
  << /Size 7
255
262
  /Root 2 0 R
256
263
  /Info 1 0 R
257
264
  >>
258
265
  startxref
259
- 3046
266
+ 3118
260
267
  %%EOF
@@ -17,7 +17,7 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 2622
20
+ << /Length 2627
21
21
  >>
22
22
  stream
23
23
  q
@@ -26,15 +26,15 @@ q
26
26
  0.3 w
27
27
  /DeviceRGB CS
28
28
  0.000 0.000 0.000 SCN
29
- 7.087 310.400 m
30
- 63.780 310.400 l
29
+ 21.260 298.495 m
30
+ 63.780 298.495 l
31
31
  S
32
32
  [ ] 0 d
33
33
  0.3 w
34
34
  0.000 0.000 0.000 SCN
35
35
 
36
36
  BT
37
- 9.086614173228348 327.09118897637796 Td
37
+ 23.25984251968504 315.18567716535443 Td
38
38
  /F1.0 6 Tf
39
39
  [<33>] TJ
40
40
  ET
@@ -42,45 +42,45 @@ ET
42
42
  [0.3 0.6] 0 d
43
43
  0.3 w
44
44
  0.000 0.000 0.000 SCN
45
- 63.780 310.400 m
46
- 202.677 310.400 l
45
+ 63.780 298.495 m
46
+ 188.504 298.495 l
47
47
  S
48
48
  [ ] 0 d
49
49
  0.3 w
50
50
  0.000 0.000 0.000 SCN
51
51
 
52
52
  BT
53
- 65.77952755905513 327.09118897637796 Td
53
+ 65.77952755905513 315.18567716535443 Td
54
54
  /F1.0 6 Tf
55
55
  [<50726f6475746f20436f6d2043736f736e20323031202d2049434d53205354>] TJ
56
56
  ET
57
57
 
58
58
 
59
59
  BT
60
- 65.77952755905513 320.395188976378 Td
60
+ 65.77952755905513 308.48967716535446 Td
61
61
  /F1.0 6 Tf
62
- [<5354> 50 <3a204d56> 135 <413a2032342c303025202a20416ced713a2031372c303025202a2042433a20372c3636202a20566c723a>] TJ
62
+ [<5354> 50 <3a204d56> 135 <413a2032342c303025202a20416ced713a2031372c303025202a2042433a20372c3636202a>] TJ
63
63
  ET
64
64
 
65
65
 
66
66
  BT
67
- 65.77952755905513 313.69918897637797 Td
67
+ 65.77952755905513 301.79367716535444 Td
68
68
  /F1.0 6 Tf
69
- [<302c3235>] TJ
69
+ [<566c723a20302c3235>] TJ
70
70
  ET
71
71
 
72
72
  [0.3 0.6] 0 d
73
73
  0.3 w
74
74
  0.000 0.000 0.000 SCN
75
- 202.677 310.400 m
76
- 239.528 310.400 l
75
+ 188.504 298.495 m
76
+ 225.354 298.495 l
77
77
  S
78
78
  [ ] 0 d
79
79
  0.3 w
80
80
  0.000 0.000 0.000 SCN
81
81
 
82
82
  BT
83
- 204.67716535433075 327.09118897637796 Td
83
+ 190.50393700787401 315.18567716535443 Td
84
84
  /F1.0 6 Tf
85
85
  [<3435363738393031>] TJ
86
86
  ET
@@ -88,15 +88,15 @@ ET
88
88
  [0.3 0.6] 0 d
89
89
  0.3 w
90
90
  0.000 0.000 0.000 SCN
91
- 239.528 310.400 m
92
- 262.205 310.400 l
91
+ 225.354 298.495 m
92
+ 248.031 298.495 l
93
93
  S
94
94
  [ ] 0 d
95
95
  0.3 w
96
96
  0.000 0.000 0.000 SCN
97
97
 
98
98
  BT
99
- 241.52755905511816 327.09118897637796 Td
99
+ 227.35433070866142 315.18567716535443 Td
100
100
  /F1.0 6 Tf
101
101
  [<30323031>] TJ
102
102
  ET
@@ -104,15 +104,15 @@ ET
104
104
  [0.3 0.6] 0 d
105
105
  0.3 w
106
106
  0.000 0.000 0.000 SCN
107
- 262.205 310.400 m
108
- 290.551 310.400 l
107
+ 248.031 298.495 m
108
+ 276.378 298.495 l
109
109
  S
110
110
  [ ] 0 d
111
111
  0.3 w
112
112
  0.000 0.000 0.000 SCN
113
113
 
114
114
  BT
115
- 264.2047244094488 327.09118897637796 Td
115
+ 250.03149606299212 315.18567716535443 Td
116
116
  /F1.0 6 Tf
117
117
  [<35343031>] TJ
118
118
  ET
@@ -120,15 +120,15 @@ ET
120
120
  [0.3 0.6] 0 d
121
121
  0.3 w
122
122
  0.000 0.000 0.000 SCN
123
- 290.551 310.400 m
124
- 318.898 310.400 l
123
+ 276.378 298.495 m
124
+ 304.724 298.495 l
125
125
  S
126
126
  [ ] 0 d
127
127
  0.3 w
128
128
  0.000 0.000 0.000 SCN
129
129
 
130
130
  BT
131
- 292.5511811023622 327.09118897637796 Td
131
+ 278.37795275590554 315.18567716535443 Td
132
132
  /F1.0 6 Tf
133
133
  [<554e>] TJ
134
134
  ET
@@ -136,15 +136,15 @@ ET
136
136
  [0.3 0.6] 0 d
137
137
  0.3 w
138
138
  0.000 0.000 0.000 SCN
139
- 318.898 310.400 m
140
- 355.748 310.400 l
139
+ 304.724 298.495 m
140
+ 341.575 298.495 l
141
141
  S
142
142
  [ ] 0 d
143
143
  0.3 w
144
144
  0.000 0.000 0.000 SCN
145
145
 
146
146
  BT
147
- 344.24803149606294 327.09118897637796 Td
147
+ 330.0748031496063 315.18567716535443 Td
148
148
  /F1.0 6 Tf
149
149
  [<362c3030>] TJ
150
150
  ET
@@ -152,15 +152,15 @@ ET
152
152
  [0.3 0.6] 0 d
153
153
  0.3 w
154
154
  0.000 0.000 0.000 SCN
155
- 355.748 310.400 m
156
- 398.268 310.400 l
155
+ 341.575 298.495 m
156
+ 384.094 298.495 l
157
157
  S
158
158
  [ ] 0 d
159
159
  0.3 w
160
160
  0.000 0.000 0.000 SCN
161
161
 
162
162
  BT
163
- 386.767716535433 327.09118897637796 Td
163
+ 372.5944881889764 315.18567716535443 Td
164
164
  /F1.0 6 Tf
165
165
  [<312c3033>] TJ
166
166
  ET
@@ -168,15 +168,15 @@ ET
168
168
  [0.3 0.6] 0 d
169
169
  0.3 w
170
170
  0.000 0.000 0.000 SCN
171
- 398.268 310.400 m
172
- 440.787 310.400 l
171
+ 384.094 298.495 m
172
+ 426.614 298.495 l
173
173
  S
174
174
  [ ] 0 d
175
175
  0.3 w
176
176
  0.000 0.000 0.000 SCN
177
177
 
178
178
  BT
179
- 429.2874015748031 327.09118897637796 Td
179
+ 415.1141732283465 315.18567716535443 Td
180
180
  /F1.0 6 Tf
181
181
  [<362c3138>] TJ
182
182
  ET
@@ -184,8 +184,8 @@ ET
184
184
  [0.3 0.6] 0 d
185
185
  0.3 w
186
186
  0.000 0.000 0.000 SCN
187
- 440.787 310.400 m
188
- 483.307 310.400 l
187
+ 426.614 298.495 m
188
+ 469.134 298.495 l
189
189
  S
190
190
  [ ] 0 d
191
191
  0.3 w
@@ -193,8 +193,8 @@ S
193
193
  [0.3 0.6] 0 d
194
194
  0.3 w
195
195
  0.000 0.000 0.000 SCN
196
- 483.307 310.400 m
197
- 511.654 310.400 l
196
+ 469.134 298.495 m
197
+ 497.480 298.495 l
198
198
  S
199
199
  [ ] 0 d
200
200
  0.3 w
@@ -202,8 +202,8 @@ S
202
202
  [0.3 0.6] 0 d
203
203
  0.3 w
204
204
  0.000 0.000 0.000 SCN
205
- 511.654 310.400 m
206
- 540.000 310.400 l
205
+ 497.480 298.495 m
206
+ 525.827 298.495 l
207
207
  S
208
208
  [ ] 0 d
209
209
  0.3 w
@@ -211,8 +211,8 @@ S
211
211
  [0.3 0.6] 0 d
212
212
  0.3 w
213
213
  0.000 0.000 0.000 SCN
214
- 540.000 310.400 m
215
- 565.512 310.400 l
214
+ 525.827 298.495 m
215
+ 551.339 298.495 l
216
216
  S
217
217
  [ ] 0 d
218
218
  0.3 w
@@ -220,8 +220,8 @@ S
220
220
  [0.3 0.6] 0 d
221
221
  0.3 w
222
222
  0.000 0.000 0.000 SCN
223
- 565.512 310.400 m
224
- 589.890 310.400 l
223
+ 551.339 298.495 m
224
+ 575.717 298.495 l
225
225
  S
226
226
  [ ] 0 d
227
227
  0.3 w
@@ -255,13 +255,13 @@ xref
255
255
  0000000109 00000 n
256
256
  0000000158 00000 n
257
257
  0000000215 00000 n
258
- 0000002889 00000 n
259
- 0000003069 00000 n
258
+ 0000002894 00000 n
259
+ 0000003074 00000 n
260
260
  trailer
261
261
  << /Size 7
262
262
  /Root 2 0 R
263
263
  /Info 1 0 R
264
264
  >>
265
265
  startxref
266
- 3168
266
+ 3173
267
267
  %%EOF