These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace NFePHP\CTe\Factories; |
||
4 | |||
5 | /** |
||
6 | * @todo Precisa ser refatorada! |
||
7 | * Classe de conversão do TXT para XML |
||
8 | * |
||
9 | * @category API |
||
10 | * @package NFePHP\NFe |
||
11 | * @copyright NFePHP Copyright (c) 2008-2017 |
||
12 | * @license http://www.gnu.org/licenses/lgpl.txt LGPLv3+ |
||
13 | * @license https://opensource.org/licenses/MIT MIT |
||
14 | * @license http://www.gnu.org/licenses/gpl.txt GPLv3+ |
||
15 | * @author Roberto L. Machado <linux.rlm at gmail dot com> |
||
16 | * @link http://github.com/nfephp-org/sped-nfe for the canonical source repository |
||
17 | */ |
||
18 | |||
19 | use NFePHP\Common\Strings; |
||
20 | use NFePHP\CTe\Make; |
||
21 | use NFePHP\CTe\Exception\DocumentsException; |
||
22 | use stdClass; |
||
23 | |||
24 | class Parser |
||
25 | { |
||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $structure; |
||
30 | /** |
||
31 | * @var Make |
||
32 | */ |
||
33 | protected $make; |
||
34 | /** |
||
35 | * @var int |
||
36 | */ |
||
37 | protected $item = 0; |
||
38 | /** |
||
39 | * @var int |
||
40 | */ |
||
41 | protected $nDI = 0; |
||
42 | /** |
||
43 | * @var int |
||
44 | */ |
||
45 | protected $volId = -1; |
||
46 | /** |
||
47 | * @var stdClass |
||
48 | */ |
||
49 | protected $stdNFP; |
||
50 | /** |
||
51 | * @var stdClass |
||
52 | */ |
||
53 | protected $stdEmit; |
||
54 | /** |
||
55 | * @var stdClass |
||
56 | */ |
||
57 | protected $stdDest; |
||
58 | /** |
||
59 | * @var stdClass |
||
60 | */ |
||
61 | protected $stdRetirada; |
||
62 | /** |
||
63 | * @var stdClass |
||
64 | */ |
||
65 | protected $stdEntrega; |
||
66 | /** |
||
67 | * @var stdClass |
||
68 | */ |
||
69 | protected $stdAutXML; |
||
70 | /** |
||
71 | * @var stdClass |
||
72 | */ |
||
73 | protected $stdComb; |
||
74 | /** |
||
75 | * @var stdClass |
||
76 | */ |
||
77 | protected $stdIPI; |
||
78 | /** |
||
79 | * @var stdClass |
||
80 | */ |
||
81 | protected $stdPIS; |
||
82 | /** |
||
83 | * @var stdClass |
||
84 | */ |
||
85 | protected $stdPISST; |
||
86 | /** |
||
87 | * @var stdClass |
||
88 | */ |
||
89 | protected $stdII; |
||
90 | /** |
||
91 | * @var stdClass |
||
92 | */ |
||
93 | protected $stdCOFINS; |
||
94 | /** |
||
95 | * @var stdClass |
||
96 | */ |
||
97 | protected $stdCOFINSST; |
||
98 | /** |
||
99 | * @var stdClass |
||
100 | */ |
||
101 | protected $stdTransporta; |
||
102 | |||
103 | /** |
||
104 | * Configure environment to correct NFe layout |
||
105 | * @param string $version |
||
106 | */ |
||
107 | public function __construct($version = '3.10') |
||
108 | { |
||
109 | $ver = str_replace('.', '', $version); |
||
110 | $path = realpath(__DIR__."/../../storage/txtstructure$ver.json"); |
||
111 | $this->structure = json_decode(file_get_contents($path), true); |
||
112 | $this->make = new Make(); |
||
113 | } |
||
114 | |||
115 | /** |
||
116 | * Convert txt to XML |
||
117 | * @param array $nota |
||
118 | * @return string |
||
119 | */ |
||
120 | public function toXml($nota) |
||
121 | { |
||
122 | $this->array2xml($nota); |
||
123 | if ($this->make->monta()) { |
||
124 | return $this->make->getXML(); |
||
125 | } |
||
126 | return null; |
||
127 | } |
||
128 | |||
129 | /** |
||
130 | * Converte txt array to xml |
||
131 | * @param array $nota |
||
132 | * @return void |
||
133 | */ |
||
134 | protected function array2xml($nota) |
||
135 | { |
||
136 | foreach ($nota as $lin) { |
||
137 | $fields = explode('|', $lin); |
||
138 | if (empty($fields)) { |
||
139 | continue; |
||
140 | } |
||
141 | $metodo = strtolower(str_replace(' ', '', $fields[0])).'Entity'; |
||
142 | if (!method_exists(__CLASS__, $metodo)) { |
||
143 | //campo não definido |
||
144 | throw DocumentsException::wrongDocument(16, $lin); |
||
145 | } |
||
146 | $struct = $this->structure[strtoupper($fields[0])]; |
||
147 | $std = $this->fieldsToStd($fields, $struct); |
||
148 | $this->$metodo($std); |
||
149 | } |
||
150 | } |
||
151 | |||
152 | /** |
||
153 | * Creates stdClass for all tag fields |
||
154 | * @param array $dfls |
||
155 | * @param string $struct |
||
156 | * @return stdClass |
||
157 | */ |
||
158 | protected static function fieldsToStd($dfls, $struct) |
||
159 | { |
||
160 | $sfls = explode('|', $struct); |
||
161 | $len = count($sfls)-1; |
||
162 | $std = new \stdClass(); |
||
163 | for ($i = 1; $i < $len; $i++) { |
||
164 | $name = $sfls[$i]; |
||
165 | $data = $dfls[$i]; |
||
166 | if (!empty($name)) { |
||
167 | $std->$name = $data; |
||
168 | } |
||
169 | } |
||
170 | return $std; |
||
171 | } |
||
172 | |||
173 | /** |
||
174 | * Create tag infNFe [A] |
||
175 | * A|versao|Id|pk_nItem| |
||
176 | * @param stdClass $std |
||
177 | * @return void |
||
178 | */ |
||
179 | protected function aEntity($std) |
||
180 | { |
||
181 | $this->make->taginfNFe($std); |
||
182 | } |
||
183 | |||
184 | /** |
||
185 | * Create tag ide [B] |
||
186 | * B|cUF|cNF|natOp|indPag|mod|serie|nNF|dhEmi|dhSaiEnt|tpNF|idDest|cMunFG |
||
187 | * |tpImp|tpEmis|cDV|tp Amb|finNFe|indFinal|indPres|procEmi|verProc|dhCont|xJust| |
||
188 | * |
||
189 | * NOTE: adjusted for NT2016_002_v1.30 |
||
190 | * B|cUF|cNF|natOp|mod|serie|nNF|dhEmi|dhSaiEnt|tpNF|idDest|cMunFG|tpImp |
||
191 | * |tpEmis|cDV|tpAmb|finNFe|indFinal|indPres|procEmi|verProc|dhCont|xJust| |
||
192 | * @param stdClass $std |
||
193 | * @return void |
||
194 | */ |
||
195 | protected function bEntity($std) |
||
196 | { |
||
197 | $this->make->tagide($std); |
||
198 | } |
||
199 | |||
200 | /** |
||
201 | * Create tag nfref [BA] |
||
202 | * BA| |
||
203 | * @param stdClass $std |
||
204 | * @return void |
||
205 | */ |
||
206 | protected function baEntity($std) |
||
207 | { |
||
208 | //fake não faz nada |
||
209 | $field = null; |
||
210 | } |
||
211 | |||
212 | /** |
||
213 | * Create tag refNFe [BA02] |
||
214 | * BA02|refNFe| |
||
215 | * @param stdClass $std |
||
216 | * @return void |
||
217 | */ |
||
218 | protected function ba02Entity($std) |
||
219 | { |
||
220 | $this->make->tagrefNFe($std); |
||
0 ignored issues
–
show
|
|||
221 | } |
||
222 | |||
223 | /** |
||
224 | * Create tag refNF [BA03] |
||
225 | * BA03|cUF|AAMM|CNPJ|mod|serie|nNF| |
||
226 | * @param stdClass $std |
||
227 | * @return void |
||
228 | */ |
||
229 | protected function ba03Entity($std) |
||
230 | { |
||
231 | $this->make->tagrefNF($std); |
||
0 ignored issues
–
show
$std is of type object<stdClass> , but the function expects a object<NFePHP\CTe\type> .
It seems like the type of the argument is not accepted by the function/method which you are calling. In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug. We suggest to add an explicit type cast like in the following example: function acceptsInteger($int) { }
$x = '123'; // string "123"
// Instead of
acceptsInteger($x);
// we recommend to use
acceptsInteger((integer) $x);
Loading history...
|
|||
232 | } |
||
233 | |||
234 | /** |
||
235 | * Load fields for tag refNFP [BA10] |
||
236 | * BA10|cUF|AAMM|IE|mod|serie|nNF| |
||
237 | * @param stdClass $std |
||
238 | * @return void |
||
239 | */ |
||
240 | protected function ba10Entity($std) |
||
241 | { |
||
242 | $this->stdNFP = $std; |
||
243 | $this->stdNFP->CNPJ = null; |
||
244 | $this->stdNFP->CPF = null; |
||
245 | } |
||
246 | |||
247 | /** |
||
248 | * Create tag refNFP [BA13], with CNPJ belongs to [BA10] |
||
249 | * BA13|CNPJ| |
||
250 | * @param stdClass $std |
||
251 | * @return void |
||
252 | */ |
||
253 | protected function ba13Entity($std) |
||
254 | { |
||
255 | $this->stdNFP->CNPJ = $std->CNPJ; |
||
256 | $this->buildBA10Entity(); |
||
257 | $this->stdNFP = null; |
||
258 | } |
||
259 | |||
260 | /** |
||
261 | * Create tag refNFP [BA14], with CPF belongs to [BA10] |
||
262 | * BA14|CPF| |
||
263 | * @param stdClass $std |
||
264 | * @return void |
||
265 | */ |
||
266 | protected function ba14Entity($std) |
||
267 | { |
||
268 | $this->stdNFP->CPF = $std->CPF; |
||
269 | $this->buildBA10Entity(); |
||
270 | $this->stdNFP = null; |
||
271 | } |
||
272 | |||
273 | /** |
||
274 | * Create tag refNFP [BA10] |
||
275 | * @return void |
||
276 | */ |
||
277 | protected function buildBA10Entity() |
||
278 | { |
||
279 | $this->make->tagrefNFP($this->stdNFP); |
||
0 ignored issues
–
show
|
|||
280 | } |
||
281 | |||
282 | /** |
||
283 | * Create tag refCTe [BA19] |
||
284 | * B19|refCTe| |
||
285 | * @param stdClass $std |
||
286 | * @return void |
||
287 | */ |
||
288 | protected function ba19Entity($std) |
||
289 | { |
||
290 | $this->make->tagrefCTe($std); |
||
0 ignored issues
–
show
$std is of type object<stdClass> , but the function expects a object<NFePHP\CTe\type> .
It seems like the type of the argument is not accepted by the function/method which you are calling. In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug. We suggest to add an explicit type cast like in the following example: function acceptsInteger($int) { }
$x = '123'; // string "123"
// Instead of
acceptsInteger($x);
// we recommend to use
acceptsInteger((integer) $x);
Loading history...
|
|||
291 | } |
||
292 | |||
293 | /** |
||
294 | * Create tag refECF [BA20] |
||
295 | * BA20|mod|nECF|nCOO| |
||
296 | * @param stdClass $std |
||
297 | * @return void |
||
298 | */ |
||
299 | protected function ba20Entity($std) |
||
300 | { |
||
301 | $this->make->tagrefECF($std); |
||
0 ignored issues
–
show
The method
tagrefECF() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
302 | } |
||
303 | |||
304 | /** |
||
305 | * Load fields for tag emit [C] |
||
306 | * C|XNome|XFant|IE|IEST|IM|CNAE|CRT| |
||
307 | * @param stdClass $std |
||
308 | * @return void |
||
309 | */ |
||
310 | protected function cEntity($std) |
||
311 | { |
||
312 | $this->stdEmit = $std; |
||
313 | $this->stdEmit->CNPJ = null; |
||
314 | $this->stdEmit->CPF = null; |
||
315 | } |
||
316 | |||
317 | /** |
||
318 | * Create tag emit [C02], with CNPJ belongs to [C] |
||
319 | * C02|CNPJ| |
||
320 | * @param stdClass $std |
||
321 | * @return void |
||
322 | */ |
||
323 | protected function c02Entity($std) |
||
324 | { |
||
325 | $this->stdEmit->CNPJ = $std->CNPJ; |
||
326 | $this->buildCEntity(); |
||
327 | $this->stdEmit = null; |
||
328 | } |
||
329 | |||
330 | /** |
||
331 | * Create tag emit [C02a], with CPF belongs to [C] |
||
332 | * C02a|CPF| |
||
333 | * @param stdClass $std |
||
334 | * @return void |
||
335 | */ |
||
336 | protected function c02aEntity($std) |
||
337 | { |
||
338 | $this->stdEmit->CPF = $std->CPF; |
||
339 | $this->buildCEntity(); |
||
340 | $this->stdEmit = null; |
||
341 | } |
||
342 | |||
343 | /** |
||
344 | * Create tag emit [C] |
||
345 | * @return void |
||
346 | */ |
||
347 | protected function buildCEntity() |
||
348 | { |
||
349 | $this->make->tagemit($this->stdEmit); |
||
350 | } |
||
351 | |||
352 | /** |
||
353 | * Create tag enderEmit [C05] |
||
354 | * C05|xLgr|nro|xCpl|xBairro|cMun|xMun|UF|CEP|cPais|xPais|fone| |
||
355 | * @param stdClass $std |
||
356 | * @return void |
||
357 | */ |
||
358 | protected function c05Entity($std) |
||
359 | { |
||
360 | $this->make->tagenderEmit($std); |
||
361 | } |
||
362 | |||
363 | /** |
||
364 | * Load fields for tag dest [E] |
||
365 | * E|xNome|indIEDest|IE|ISUF|IM|email| |
||
366 | * @param stdClass $std |
||
367 | * @return void |
||
368 | */ |
||
369 | protected function eEntity($std) |
||
370 | { |
||
371 | $this->stdDest = $std; |
||
372 | $this->stdDest->CNPJ = null; |
||
373 | $this->stdDest->CPF = null; |
||
374 | $this->stdDest->idEstrangeiro = null; |
||
375 | } |
||
376 | |||
377 | /** |
||
378 | * Create tag dest [E02], with CNPJ belongs to [E] |
||
379 | * E02|CNPJ| |
||
380 | * @param stdClass $std |
||
381 | * @return void |
||
382 | */ |
||
383 | protected function e02Entity($std) |
||
384 | { |
||
385 | $this->stdDest->CNPJ = $std->CNPJ; |
||
386 | $this->buildEEntity(); |
||
387 | $this->stdDest = null; |
||
388 | } |
||
389 | |||
390 | /** |
||
391 | * Create tag dest [E03], with CPF belongs to [E] |
||
392 | * E03|CPF| |
||
393 | * @param stdClass $std |
||
394 | * @return void |
||
395 | */ |
||
396 | protected function e03Entity($std) |
||
397 | { |
||
398 | $this->stdDest->CPF = $std->CPF; |
||
399 | $this->buildEEntity(); |
||
400 | $this->stdDest = null; |
||
401 | } |
||
402 | |||
403 | /** |
||
404 | * Create tag dest [E03a], with idEstrangeiro belongs to [E] |
||
405 | * E03a|idEstrangeiro| |
||
406 | * @param stdClass $std |
||
407 | * @return void |
||
408 | */ |
||
409 | protected function e03aEntity($std) |
||
410 | { |
||
411 | $this->stdDest->idEstrangeiro = $std->idEstrangeiro; |
||
412 | $this->buildEEntity(); |
||
413 | $this->stdDest = null; |
||
414 | } |
||
415 | |||
416 | /** |
||
417 | * Create tag dest [E] |
||
418 | * @return void |
||
419 | */ |
||
420 | protected function buildEEntity() |
||
421 | { |
||
422 | $this->make->tagdest($this->stdDest); |
||
423 | } |
||
424 | |||
425 | /** |
||
426 | * Create tag enderDest [E05] |
||
427 | * E05|xLgr|nro|xCpl|xBairro|cMun|xMun|UF|CEP|cPais|xPais|fone| |
||
428 | * @param stdClass $std |
||
429 | * @return void |
||
430 | */ |
||
431 | protected function e05Entity($std) |
||
432 | { |
||
433 | $this->make->tagenderDest($std); |
||
434 | } |
||
435 | |||
436 | /** |
||
437 | * Load fields for tag retirada [F] |
||
438 | * F|xLgr|nro|xCpl|xBairro|cMun|xMun|UF| |
||
439 | * @param stdClass $std |
||
440 | * @return void |
||
441 | */ |
||
442 | protected function fEntity($std) |
||
443 | { |
||
444 | $this->stdRetirada = $std; |
||
445 | $this->stdRetirada->CNPJ = null; |
||
446 | $this->stdRetirada->CPF = null; |
||
447 | } |
||
448 | |||
449 | /** |
||
450 | * Create tag retirada [F02], with CNPJ belongs to [F] |
||
451 | * F02|CNPJ| |
||
452 | * @param stdClass $std |
||
453 | * @return void |
||
454 | */ |
||
455 | protected function f02Entity($std) |
||
456 | { |
||
457 | $this->stdRetirada->CNPJ = $std->CNPJ; |
||
458 | $this->buildFEntity(); |
||
459 | $this->stdRetirada = null; |
||
460 | } |
||
461 | |||
462 | /** |
||
463 | * Create tag retirada [F02a], with CPF belongs to [F] |
||
464 | * F02a|CPF| |
||
465 | * @param stdClass $std |
||
466 | * @return void |
||
467 | */ |
||
468 | protected function f02aEntity($std) |
||
469 | { |
||
470 | $this->stdRetirada->CPF = $std->CPF; |
||
471 | $this->buildFEntity(); |
||
472 | $this->stdRetirada = null; |
||
473 | } |
||
474 | |||
475 | /** |
||
476 | * Create tag retirada [F] |
||
477 | * @return void |
||
478 | */ |
||
479 | protected function buildFEntity() |
||
480 | { |
||
481 | $this->make->tagretirada($this->stdRetirada); |
||
0 ignored issues
–
show
The method
tagretirada() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
482 | } |
||
483 | |||
484 | /** |
||
485 | * Load fields for tag entrega [G] |
||
486 | * G|xLgr|nro|xCpl|xBairro|cMun|xMun|UF| |
||
487 | * @param stdClass $std |
||
488 | * @return void |
||
489 | */ |
||
490 | protected function gEntity($std) |
||
491 | { |
||
492 | $this->stdEntrega = $std; |
||
493 | $this->stdEntrega->CNPJ = null; |
||
494 | $this->stdEntrega->CPF = null; |
||
495 | } |
||
496 | |||
497 | /** |
||
498 | * Create tag entrega [G02], with CNPJ belongs to [G] |
||
499 | * G02|CNPJ| |
||
500 | * @param stdClass $std |
||
501 | * @return void |
||
502 | */ |
||
503 | protected function g02Entity($std) |
||
504 | { |
||
505 | $this->stdEntrega->CNPJ = $std->CNPJ; |
||
506 | $this->buildGEntity(); |
||
507 | $this->stdEntrega = null; |
||
508 | } |
||
509 | |||
510 | /** |
||
511 | * Create tag entrega [G02a], with CPF belongs to [G] |
||
512 | * G02a|CPF| |
||
513 | * @param stdClass $std |
||
514 | * @return void |
||
515 | */ |
||
516 | protected function g02aEntity($std) |
||
517 | { |
||
518 | $this->stdEntrega->CPF = $std->CPF; |
||
519 | $this->buildGEntity(); |
||
520 | $this->stdEntrega = null; |
||
521 | } |
||
522 | |||
523 | /** |
||
524 | * Create tag entrega [G] |
||
525 | * @return void |
||
526 | */ |
||
527 | protected function buildGEntity() |
||
528 | { |
||
529 | $this->make->tagentrega($this->stdEntrega); |
||
0 ignored issues
–
show
The method
tagEntrega() cannot be called from this context as it is declared private in class NFePHP\CTe\Make .
This check looks for access to methods that are not accessible from the current context. If you need to make a method accessible to another context you can raise its visibility level in the defining class.
Loading history...
The call to
Make::tagEntrega() has too many arguments starting with $this->stdEntrega .
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue. If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. In this case you can add the
Loading history...
|
|||
530 | } |
||
531 | |||
532 | /** |
||
533 | * Create tag autXML [GA] |
||
534 | * GA| |
||
535 | * @param stdClass $std |
||
536 | * @return void |
||
537 | */ |
||
538 | protected function gaEntity($std) |
||
539 | { |
||
540 | //fake não faz nada |
||
541 | $std->CNPJ = null; |
||
542 | $std->CPF = null; |
||
543 | $this->stdAutXML = $std; |
||
544 | } |
||
545 | |||
546 | /** |
||
547 | * Create tag autXML with CNPJ [GA02], belongs to [GA] |
||
548 | * GA02|CNPJ| |
||
549 | * @param stdClass $std |
||
550 | * @return void |
||
551 | */ |
||
552 | protected function ga02Entity($std) |
||
553 | { |
||
554 | $this->stdAutXML->CNPJ = $std->CNPJ; |
||
555 | $this->make->tagautXML($this->stdAutXML); |
||
556 | $this->stdAutXML = null; |
||
557 | } |
||
558 | |||
559 | /** |
||
560 | * Create tag autXML with CPF [GA03], belongs to GA |
||
561 | * GA03|CPF| |
||
562 | * @param stdClass $std |
||
563 | * @return void |
||
564 | */ |
||
565 | protected function ga03Entity($std) |
||
566 | { |
||
567 | $this->stdAutXML->CPF = $std->CPF; |
||
568 | $this->make->tagautXML($this->stdAutXML); |
||
569 | $this->stdAutXML = null; |
||
570 | } |
||
571 | |||
572 | /** |
||
573 | * Create tag det/infAdProd [H] |
||
574 | * H|item|infAdProd| |
||
575 | * @param stdClass $std |
||
576 | */ |
||
577 | protected function hEntity($std) |
||
578 | { |
||
579 | if (!empty($std->infAdProd)) { |
||
580 | $this->make->taginfAdProd($std); |
||
0 ignored issues
–
show
The method
taginfAdProd() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
581 | } |
||
582 | $this->item = (integer) $std->item; |
||
583 | } |
||
584 | |||
585 | /** |
||
586 | * Create tag prod [I] |
||
587 | * I|cProd|cEAN|xProd|NCM|EXTIPI|CFOP|uCom|qCom|vUnCom|vProd|cEANTrib|uTrib|qTrib|vUnTrib|vFrete|vSeg|vDesc|vOutro|indTot|xPed|nItemPed|nFCI| |
||
588 | * |
||
589 | * NOTE: adjusted for NT2016_002_v1.30 |
||
590 | * I|cProd|cEAN|xProd|NCM|cBenf|EXTIPI|CFOP|uCom|qCom|vUnCom|vProd|cEANTrib|uTrib|qTrib|vUnTrib|vFrete|vSeg|vDesc|vOutro|indTot|xPed|nItemPed|nFCI| |
||
591 | * @param stdClass $std |
||
592 | * @return void |
||
593 | */ |
||
594 | protected function iEntity($std) |
||
595 | { |
||
596 | $std->item = $this->item; |
||
597 | $this->make->tagprod($std); |
||
0 ignored issues
–
show
The method
tagprod() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
598 | } |
||
599 | |||
600 | /** |
||
601 | * Create tag NVE [I05A] |
||
602 | * I05A|NVE| |
||
603 | * @param stdClass $std |
||
604 | * @return void |
||
605 | */ |
||
606 | protected function i05aEntity($std) |
||
607 | { |
||
608 | $std->item = $this->item; |
||
609 | $this->make->tagNVE($std); |
||
0 ignored issues
–
show
The method
tagNVE() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
610 | } |
||
611 | |||
612 | /** |
||
613 | * Create tag CEST [I05C] |
||
614 | * I05C|CEST| |
||
615 | * NOTE: adjusted for NT2016_002_v1.30 |
||
616 | * I05C|CEST|indEscala|CNPJFab| |
||
617 | * @param stdClass $std |
||
618 | * @return void |
||
619 | */ |
||
620 | protected function i05cEntity($std) |
||
621 | { |
||
622 | $std->item = $this->item; |
||
623 | $this->make->tagCEST($std); |
||
0 ignored issues
–
show
The method
tagCEST() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
624 | } |
||
625 | |||
626 | /** |
||
627 | * Create tag DI [I18] |
||
628 | * I18|nDI|dDI|xLocDesemb|UFDesemb|dDesemb|tpViaTransp|vAFRMM|tpIntermedio|CNPJ|UFTerceiro|cExportador| |
||
629 | * @param stdClass $std |
||
630 | * @return void |
||
631 | */ |
||
632 | protected function i18Entity($std) |
||
633 | { |
||
634 | $std->item = $this->item; |
||
635 | $this->make->tagDI($std); |
||
0 ignored issues
–
show
The method
tagDI() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
636 | $this->nDI = $std->nDI; |
||
637 | } |
||
638 | |||
639 | /** |
||
640 | * Create tag adi [I25], belongs to [I18] |
||
641 | * I25|nAdicao|nSeqAdicC|cFabricante|vDescDI|nDraw| |
||
642 | * @param stdClass $std |
||
643 | * @return void |
||
644 | */ |
||
645 | protected function i25Entity($std) |
||
646 | { |
||
647 | $std->item = $this->item; |
||
648 | $std->nDI = $this->nDI; |
||
649 | $this->make->tagadi($std); |
||
0 ignored issues
–
show
The method
tagadi() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
650 | } |
||
651 | |||
652 | /** |
||
653 | * Load fields for tag detExport [I50] |
||
654 | * I50|nDraw| |
||
655 | * @param stdClass $std |
||
656 | * @return void |
||
657 | */ |
||
658 | protected function i50Entity($std) |
||
659 | { |
||
660 | $std->item = $this->item; |
||
661 | $this->make->tagdetExport($std); |
||
0 ignored issues
–
show
The method
tagdetExport() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
662 | } |
||
663 | |||
664 | /** |
||
665 | * Create tag detExport/exportInd [I52], belongs to [I50] |
||
666 | * I52|nRE|chNFe|qExport| |
||
667 | * @param stdClass $std |
||
668 | * @return void |
||
669 | */ |
||
670 | protected function i52Entity($std) |
||
671 | { |
||
672 | $std->item = $this->item; |
||
673 | $this->make->tagdetExportInd($std); |
||
0 ignored issues
–
show
The method
tagdetExportInd() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
674 | } |
||
675 | |||
676 | /** |
||
677 | * Create tag RASTRO [I80] |
||
678 | * NOTE: adjusted for NT2016_002_v1.30 |
||
679 | * I80|nLote|qLote|dFab|dVal|cAgreg| |
||
680 | * @param stdClass $std |
||
681 | * @return void |
||
682 | */ |
||
683 | protected function i80Entity($std) |
||
684 | { |
||
685 | $std->item = $this->item; |
||
686 | $this->make->tagRastro($std); |
||
0 ignored issues
–
show
The method
tagRastro() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
687 | } |
||
688 | |||
689 | /** |
||
690 | * Create tag veicProd [JA] |
||
691 | * JA|tpOp|chassi|cCor|xCor|pot|cilin|pesoL|pesoB|nSerie|tpComb|nMotor|CMT|dist|anoMod|anoFab|tpPint|tpVeic|espVeic|VIN|condVeic|cMod|cCorDENATRAN|lota|tpRest| |
||
692 | * @param stdClass $std |
||
693 | * @return void |
||
694 | */ |
||
695 | protected function jaEntity($std) |
||
696 | { |
||
697 | $std->item = $this->item; |
||
698 | $this->make->tagveicProd($std); |
||
0 ignored issues
–
show
The method
tagveicProd() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
699 | } |
||
700 | |||
701 | /** |
||
702 | * Create tag med [K] |
||
703 | * K|nLote|qLote|dFab|dVal|vPMC| |
||
704 | * |
||
705 | * NOTE: adjusted for NT2016_002_v1.30 |
||
706 | * K|cProdANVISA|vPMC| |
||
707 | * @param stdClass $std |
||
708 | * @return void |
||
709 | */ |
||
710 | protected function kEntity($std) |
||
711 | { |
||
712 | $std->item = $this->item; |
||
713 | $std->nLote = !empty($std->nLote) ? $std->nLote : null; |
||
714 | $std->qLote = !empty($std->qLote) ? $std->qLote : null; |
||
715 | $std->dFab = !empty($std->dFab) ? $std->dFab : null; |
||
716 | $std->dVal = !empty($std->dVal) ? $std->dVal : null; |
||
717 | $std->cProdANVISA = !empty($std->cProdANVISA) ? $std->cProdANVISA : null; |
||
718 | $this->make->tagmed($std); |
||
0 ignored issues
–
show
The method
tagmed() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
719 | } |
||
720 | |||
721 | /** |
||
722 | * Create tag arma [L] |
||
723 | * L|tpArma|nSerie|nCano|descr| |
||
724 | * @param stdClass $std |
||
725 | * @return void |
||
726 | */ |
||
727 | protected function lEntity($std) |
||
728 | { |
||
729 | $std->item = $this->item; |
||
730 | $this->make->tagarma($std); |
||
0 ignored issues
–
show
The method
tagarma() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
731 | } |
||
732 | |||
733 | /** |
||
734 | * Load fields for tag comb [LA] |
||
735 | * LA|cProdANP|pMixGN|CODIF|qTemp|UFCons| |
||
736 | * |
||
737 | * NOTE: adjusted for NT2016_002_v1.30 |
||
738 | * LA|cProdANP|descANP|pGLP|pGNn|pGNi|vPart|CODIF|qTemp|UFCons| |
||
739 | * @param stdClass $std |
||
740 | * @return void |
||
741 | */ |
||
742 | protected function laEntity($std) |
||
743 | { |
||
744 | $std->item = $this->item; |
||
745 | $this->stdComb = $std; |
||
746 | //como o campo abaixo é opcional não é possível saber de antemão |
||
747 | //se o mesmo existe ou não então |
||
748 | //invocar montagem buildLAEntity() na proxima tag obrigatória [M] |
||
749 | } |
||
750 | |||
751 | /** |
||
752 | * Load fields for tag comb [LA07], belongs to [LA] |
||
753 | * LA07|qBCProd|vAliqProd|vCIDE| |
||
754 | * @param stdClass $std |
||
755 | * @return void |
||
756 | */ |
||
757 | protected function la07Entity($std) |
||
758 | { |
||
759 | $this->stdComb->qBCProd = $std->qBCProd; |
||
760 | $this->stdComb->vAliqProd = $std->vAliqProd; |
||
761 | $this->stdComb->vCIDE = $std->vCIDE; |
||
762 | //como este campo é opcional, pode ser que não exista então |
||
763 | //invocar montagem buildLAEntity() na proxima tag obrigatória [M] |
||
764 | } |
||
765 | |||
766 | /** |
||
767 | * Load fields for tag encerrante [LA11] |
||
768 | * LA11|nBico|nBomba|nTanque|vEncIni|vEncFin| |
||
769 | * @param stdClass $std |
||
770 | * @return void |
||
771 | */ |
||
772 | protected function la11Entity($std) |
||
773 | { |
||
774 | $std->item = $this->item; |
||
775 | $this->make->tagencerrante($std); |
||
0 ignored issues
–
show
The method
tagencerrante() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
776 | } |
||
777 | |||
778 | /** |
||
779 | * Create tag comb [LA] |
||
780 | * @param stdClass $std |
||
781 | * @return void |
||
782 | */ |
||
783 | protected function buildLAEntity() |
||
784 | { |
||
785 | if (!empty($this->stdComb)) { |
||
786 | $this->make->tagcomb($this->stdComb); |
||
0 ignored issues
–
show
The method
tagcomb() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
787 | } |
||
788 | } |
||
789 | |||
790 | /** |
||
791 | * Create tag RECOPI [LB] |
||
792 | * LB|nRECOPI| |
||
793 | * @param stdClass $std |
||
794 | * @return void |
||
795 | */ |
||
796 | protected function lbEntity($std) |
||
797 | { |
||
798 | $std->item = $this->item; |
||
799 | $this->make->tagRECOPI($std); |
||
0 ignored issues
–
show
The method
tagRECOPI() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
800 | } |
||
801 | |||
802 | /** |
||
803 | * Create tag imposto [M] |
||
804 | * M|vTotTrib| |
||
805 | * @param stdClass $std |
||
806 | * @return void |
||
807 | */ |
||
808 | protected function mEntity($std) |
||
809 | { |
||
810 | //create tag comb [LA] |
||
811 | $this->buildLAEntity(); |
||
812 | |||
813 | $std->item = $this->item; |
||
814 | $this->make->tagimposto($std); |
||
0 ignored issues
–
show
The method
tagimposto() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
815 | } |
||
816 | |||
817 | /** |
||
818 | * Carrega a tag ICMS [N] |
||
819 | * N| |
||
820 | * @param stdClass $std |
||
821 | * @return void |
||
822 | */ |
||
823 | protected function nEntity($std) |
||
824 | { |
||
825 | //fake não faz nada |
||
826 | $field = null; |
||
827 | } |
||
828 | |||
829 | /** |
||
830 | * Load fields for tag ICMS [N02] |
||
831 | * N02|orig|CST|modBC|vBC|pICMS|vICMS| |
||
832 | * |
||
833 | * NOTE: adjusted for NT2016_002_v1.30 |
||
834 | * N02|orig|CST|modBC|vBC|pICMS|vICMS|pFCP|vFCP| |
||
835 | * @param stdClass $std |
||
836 | * @return void |
||
837 | */ |
||
838 | protected function n02Entity($std) |
||
839 | { |
||
840 | $this->buildNEntity($std); |
||
841 | } |
||
842 | |||
843 | /** |
||
844 | * Load fields for tag ICMS [N03] |
||
845 | * N03|orig|CST|modBC|vBC|pICMS|vICMS|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST| |
||
846 | * |
||
847 | * NOTE: adjusted for NT2016_002_v1.30 |
||
848 | * N03|orig|CST|modBC|vBC|pICMS|vICMS|vBCFCP|pFCP|vFCP|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST| |
||
849 | * @param stdClass $std |
||
850 | * @return void |
||
851 | */ |
||
852 | protected function n03Entity($std) |
||
853 | { |
||
854 | $this->buildNEntity($std); |
||
855 | } |
||
856 | |||
857 | /** |
||
858 | * Load fields for tag ICMS [N04] |
||
859 | * N04|orig|CST|modBC|pRedBC|vBC|pICMS|vICMS|vICMSDeson|motDesICMS| |
||
860 | * |
||
861 | * NOTE: adjusted for NT2016_002_v1.30 |
||
862 | * N04|orig|CST|modBC|pRedBC|vBC|pICMS|vICMS|BCFCP|pFCP|vFCP|vICMSDeson|motDesICMS| |
||
863 | * @param stdClass $std |
||
864 | * @return void |
||
865 | */ |
||
866 | protected function n04Entity($std) |
||
867 | { |
||
868 | $this->buildNEntity($std); |
||
869 | } |
||
870 | |||
871 | /** |
||
872 | * Load fields for tag ICMS [N05] |
||
873 | * N05|orig|CST|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vICMSDeson|motDesICMS| |
||
874 | * |
||
875 | * NOTE: adjusted for NT2016_002_v1.30 |
||
876 | * N05|orig|CST|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST|vICMSDeson|motDesICMS| |
||
877 | * @param stdClass $std |
||
878 | * @return void |
||
879 | */ |
||
880 | protected function n05Entity($std) |
||
881 | { |
||
882 | $this->buildNEntity($std); |
||
883 | } |
||
884 | |||
885 | /** |
||
886 | * Load fields for tag ICMS [N06] |
||
887 | * N06|orig|CST|vICMSDeson|motDesICMS| |
||
888 | * @param stdClass $std |
||
889 | * @return void |
||
890 | */ |
||
891 | protected function n06Entity($std) |
||
892 | { |
||
893 | $this->buildNEntity($std); |
||
894 | } |
||
895 | |||
896 | /** |
||
897 | * Load fields for tag ICMS [N07] |
||
898 | * N07|orig|CST|modBC|pRedBC|vBC|pICMS|vICMSOp|pDif|vICMSDif|vICMS| |
||
899 | * |
||
900 | * NOTE: adjusted for NT2016_002_v1.30 |
||
901 | * N07|orig|CST|modBC|pRedBC|vBC|pICMS|vICMSOp|pDif|vICMSDif|vICMS|vBCFCP|pFCP|vFCP| |
||
902 | * @param stdClass $std |
||
903 | * @return void |
||
904 | */ |
||
905 | protected function n07Entity($std) |
||
906 | { |
||
907 | $this->buildNEntity($std); |
||
908 | } |
||
909 | |||
910 | /** |
||
911 | * Load fields for tag ICMS [N08] |
||
912 | * N08|orig|CST|vBCSTRet|vICMSSTRet| |
||
913 | * |
||
914 | * NOTE: adjusted for NT2016_002_v1.30 |
||
915 | * N08|orig|CST|vBCSTRet|pST|vICMSSTRet|vBCFCPSTRet|pFCPSTRet|vFCPSTRet| |
||
916 | * @param stdClass $std |
||
917 | * @return void |
||
918 | */ |
||
919 | protected function n08Entity($std) |
||
920 | { |
||
921 | $this->buildNEntity($std); |
||
922 | } |
||
923 | |||
924 | /** |
||
925 | * Load fields for tag ICMS [N09] |
||
926 | * N09|orig|CST|modBC|pRedBC|vBC|pICMS|vICMS|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vICMSDeson|motDesICMS| |
||
927 | * |
||
928 | * NOTE: adjusted for NT2016_002_v1.30 |
||
929 | * N09|orig|CST|modBC|pRedBC|vBC|pICMS|vICMS|vBCFCP|pFCP|vFCP|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST|vICMSDeson|motDesICMS| |
||
930 | * @param stdClass $std |
||
931 | * @return void |
||
932 | */ |
||
933 | protected function n09Entity($std) |
||
934 | { |
||
935 | $this->buildNEntity($std); |
||
936 | } |
||
937 | |||
938 | /** |
||
939 | * Load fields for tag ICMS [N10] |
||
940 | * N10|orig|CST|modBC|vBC|pRedBC|pICMS|vICMS|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vICMSDeson|motDesICMS| |
||
941 | * |
||
942 | * NOTE: adjusted for NT2016_002_v1.30 |
||
943 | * N10|orig|CST|modBC|vBC|pRedBC|pICMS|vICMS|vBCFCP|pFCP|vFCP|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST|vICMSDeson|motDesICMS| |
||
944 | * @param stdClass $std |
||
945 | * @return void |
||
946 | */ |
||
947 | protected function n10Entity($std) |
||
948 | { |
||
949 | $this->buildNEntity($std); |
||
950 | } |
||
951 | |||
952 | /** |
||
953 | * Create tag ICMS [N] |
||
954 | * NOTE: adjusted for NT2016_002_v1.30 |
||
955 | * @param \stdClass $std |
||
956 | * @return void |
||
957 | */ |
||
958 | protected function buildNEntity($std) |
||
959 | { |
||
960 | $std->item = $this->item; |
||
961 | $this->make->tagICMS($std); |
||
962 | } |
||
963 | |||
964 | /** |
||
965 | * Create tag ICMSPart [N10a] |
||
966 | * N10a|orig|CST|modBC|vBC|pRedBC|pICMS|vICMS|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|pBCOp|UFST| |
||
967 | * @param stdClass $std |
||
968 | * @return void |
||
969 | */ |
||
970 | protected function n10aEntity($std) |
||
971 | { |
||
972 | $std->item = $this->item; |
||
973 | $this->make->tagICMSPart($std); |
||
0 ignored issues
–
show
|
|||
974 | } |
||
975 | |||
976 | /** |
||
977 | * Create tag ICMSST [N10b] |
||
978 | * N10b|orig|CST|vBCSTRet|vICMSSTRet|vBCSTDest|vICMSSTDest| |
||
979 | * @param stdClass $std |
||
980 | * @return void |
||
981 | */ |
||
982 | protected function n10bEntity($std) |
||
983 | { |
||
984 | $std->item = $this->item; |
||
985 | $this->make->tagICMSST($std); |
||
0 ignored issues
–
show
|
|||
986 | } |
||
987 | |||
988 | /** |
||
989 | * Carrega e Create tag ICMSSN [N10c] |
||
990 | * N10c|orig|CSOSN|pCredSN|vCredICMSSN| |
||
991 | * @param stdClass $std |
||
992 | * @return void |
||
993 | */ |
||
994 | protected function n10cEntity($std) |
||
995 | { |
||
996 | $this->buildNSNEntity($std); |
||
997 | } |
||
998 | |||
999 | /** |
||
1000 | * Carrega e Create tag ICMSSN [N10d] |
||
1001 | * N10d|orig|CSOSN| |
||
1002 | * @param stdClass $std |
||
1003 | * @return void |
||
1004 | */ |
||
1005 | protected function n10dEntity($std) |
||
1006 | { |
||
1007 | $this->buildNSNEntity($std); |
||
1008 | } |
||
1009 | |||
1010 | |||
1011 | /** |
||
1012 | * Carrega e Create tag ICMSSN [N10e] |
||
1013 | * N10e|orig|CSOSN|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|pCredSN|vCredICMSSN| |
||
1014 | * |
||
1015 | * NOTE: adjusted for NT2016_002_v1.30 |
||
1016 | * N10e|orig|CSOSN|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST|pCredSN|vCredICMSSN|pCredSN|vCredICMSSN| |
||
1017 | * @param stdClass $std |
||
1018 | * @return void |
||
1019 | */ |
||
1020 | protected function n10eEntity($std) |
||
1021 | { |
||
1022 | $this->buildNSNEntity($std); |
||
1023 | } |
||
1024 | /** |
||
1025 | * Carrega e Create tag ICMSSN [N10f] |
||
1026 | * N10f|orig|CSOSN|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST| |
||
1027 | * |
||
1028 | * NOTE: adjusted for NT2016_002_v1.30 |
||
1029 | * N10f|orig|CSOSN|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST| |
||
1030 | * @param stdClass $std |
||
1031 | * @return void |
||
1032 | */ |
||
1033 | protected function n10fEntity($std) |
||
1034 | { |
||
1035 | $this->buildNSNEntity($std); |
||
1036 | } |
||
1037 | |||
1038 | /** |
||
1039 | * Carrega e Create tag ICMSSN [N10g] |
||
1040 | * N10g|orig|CSOSN|vBCSTRet|vICMSSTRet| |
||
1041 | * |
||
1042 | * NOTE: adjusted for NT2016_002_v1.30 |
||
1043 | * N10g|orig|CSOSN|vBCSTRet|pST|vICMSSTRet|vBCFCPSTRet|pFCPSTRet|vFCPSTRet| |
||
1044 | * @param stdClass $std |
||
1045 | * @return void |
||
1046 | */ |
||
1047 | protected function n10gEntity($std) |
||
1048 | { |
||
1049 | $this->buildNSNEntity($std); |
||
1050 | } |
||
1051 | |||
1052 | /** |
||
1053 | * Carrega e Create tag ICMSSN [N10h] |
||
1054 | * N10h|orig|CSOSN|modBC|vBC|pRedBC|pICMS|vICMS|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|pCredSN|vCredICMSSN| |
||
1055 | * |
||
1056 | * NOTE: adjusted for NT2016_002_v1.30 |
||
1057 | * N10h|orig|CSOSN|modBC|vBC|pRedBC|pICMS|vICMS|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST|pCredSN|vCredICMSSN| |
||
1058 | * @param stdClass $std |
||
1059 | * @return void |
||
1060 | */ |
||
1061 | protected function n10hEntity($std) |
||
1062 | { |
||
1063 | $this->buildNSNEntity($std); |
||
1064 | } |
||
1065 | |||
1066 | /** |
||
1067 | * Create tag ICMSSN [NS] |
||
1068 | * Nsn|orig|CSOSN|modBC|vBC|pRedBC|pICMS|vICMS|pCredSN|vCredICMSSN|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCSTRet|vICMSSTRet|vBCFCPST|pFCPST|vFCPST| |
||
1069 | * @param stdClass $std |
||
1070 | * @return void |
||
1071 | */ |
||
1072 | protected function buildNSNEntity($std) |
||
1073 | { |
||
1074 | $std->item = $this->item; |
||
1075 | $this->make->tagICMSSN($std); |
||
0 ignored issues
–
show
|
|||
1076 | } |
||
1077 | |||
1078 | /** |
||
1079 | * Load field fot tag ICMSUFDest [NA] |
||
1080 | * NA|vBCUFDest|pFCPUFDest|pICMSUFDest|pICMSInter|pICMSInterPart|vFCPUFDest|vICMSUFDest|vICMSFRemet| |
||
1081 | * @param stdClass $std |
||
1082 | * @return void |
||
1083 | */ |
||
1084 | protected function naEntity($std) |
||
1085 | { |
||
1086 | $this->buildNAEntity($std); |
||
1087 | } |
||
1088 | |||
1089 | /** |
||
1090 | * Create tag ICMSUFDest [NA] |
||
1091 | * @param stdClass $std |
||
1092 | * @return void |
||
1093 | */ |
||
1094 | protected function buildNAEntity($std) |
||
1095 | { |
||
1096 | $std->item = $this->item; |
||
1097 | $this->make->tagICMSUFDest($std); |
||
0 ignored issues
–
show
|
|||
1098 | } |
||
1099 | |||
1100 | /** |
||
1101 | * Load fields for tag IPI [O] |
||
1102 | * O|clEnq|CNPJProd|cSelo|qSelo|cEnq| |
||
1103 | * @param stdClass $std |
||
1104 | * @return void |
||
1105 | */ |
||
1106 | protected function oEntity($std) |
||
1107 | { |
||
1108 | $std->item = $this->item; |
||
1109 | $this->stdIPI = $std; |
||
1110 | $this->stdIPI->CST = null; |
||
1111 | $this->stdIPI->vIPI = null; |
||
1112 | $this->stdIPI->vBC = null; |
||
1113 | $this->stdIPI->pIPI = null; |
||
1114 | $this->stdIPI->qUnid = null; |
||
1115 | $this->stdIPI->vUnid = null; |
||
1116 | } |
||
1117 | |||
1118 | /** |
||
1119 | * Load fields for tag IPI [O07], belongs to [O] |
||
1120 | * O07|CST|vIPI| |
||
1121 | * @param stdClass $std |
||
1122 | * @return void |
||
1123 | */ |
||
1124 | protected function o07Entity($std) |
||
1125 | { |
||
1126 | $this->stdIPI->CST = $std->CST; |
||
1127 | $this->stdIPI->vIPI = $std->vIPI; |
||
1128 | } |
||
1129 | |||
1130 | /** |
||
1131 | * Load fields for tag IPI [O08], belongs to [O] |
||
1132 | * O08|CST| |
||
1133 | * @param stdClass $std |
||
1134 | * @return void |
||
1135 | */ |
||
1136 | protected function o08Entity($std) |
||
1137 | { |
||
1138 | $this->stdIPI->CST = $std->CST; |
||
1139 | $this->buildOEntity(); |
||
1140 | } |
||
1141 | |||
1142 | /** |
||
1143 | * Load fields for tag IPI [O10], belongs to [O] |
||
1144 | * O10|vBC|pIPI| |
||
1145 | * @param stdClass $std |
||
1146 | * @return void |
||
1147 | */ |
||
1148 | protected function o10Entity($std) |
||
1149 | { |
||
1150 | $this->stdIPI->vBC = $std->vBC; |
||
1151 | $this->stdIPI->pIPI = $std->pIPI; |
||
1152 | $this->buildOEntity(); |
||
1153 | } |
||
1154 | |||
1155 | /** |
||
1156 | * Load fields for tag IPI [O11], belongs to [O] |
||
1157 | * O11|qUnid|vUnid| |
||
1158 | * @param stdClass $std |
||
1159 | * @return void |
||
1160 | */ |
||
1161 | protected function o11Entity($std) |
||
1162 | { |
||
1163 | $this->stdIPI->qUnid = $std->qUnid; |
||
1164 | $this->stdIPI->vUnid = $std->vUnid; |
||
1165 | $this->buildOEntity(); |
||
1166 | } |
||
1167 | |||
1168 | /** |
||
1169 | * Create tag IPI [O] |
||
1170 | * Oxx|cst|clEnq|cnpjProd|cSelo|qSelo|cEnq|vBC|pIPI|qUnid|vUnid|vIPI| |
||
1171 | * @return void |
||
1172 | */ |
||
1173 | protected function buildOEntity() |
||
1174 | { |
||
1175 | $this->make->tagIPI($this->stdIPI); |
||
0 ignored issues
–
show
The method
tagIPI() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1176 | } |
||
1177 | |||
1178 | /** |
||
1179 | * Create tag II [P] |
||
1180 | * P|vBC|vDespAdu|vII|vIOF| |
||
1181 | * @param stdClass $std |
||
1182 | * @return void |
||
1183 | */ |
||
1184 | protected function pEntity($std) |
||
1185 | { |
||
1186 | $std->item = $this->item; |
||
1187 | $this->make->tagII($std); |
||
0 ignored issues
–
show
The method
tagII() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1188 | } |
||
1189 | |||
1190 | /** |
||
1191 | * Load fields for tag PIS [Q] |
||
1192 | * Q| |
||
1193 | * @param stdClass $std |
||
1194 | * @return void |
||
1195 | */ |
||
1196 | protected function qEntity($std) |
||
1197 | { |
||
1198 | //carrega numero do item |
||
1199 | $std->item = $this->item; |
||
1200 | $this->stdPIS = $std; |
||
1201 | $this->stdPIS->vBC = null; |
||
1202 | $this->stdPIS->pPIS = null; |
||
1203 | $this->stdPIS->vPIS = null; |
||
1204 | $this->stdPIS->qBCProd = null; |
||
1205 | $this->stdPIS->vAliqProd = null; |
||
1206 | } |
||
1207 | |||
1208 | /** |
||
1209 | * Load fields for tag PIS [Q02], belongs to [Q] |
||
1210 | * Q02|CST|vBC|pPIS|vPIS| |
||
1211 | * @param stdClass $std |
||
1212 | * @return void |
||
1213 | */ |
||
1214 | protected function q02Entity($std) |
||
1215 | { |
||
1216 | $this->stdPIS->CST = $std->CST; |
||
1217 | $this->stdPIS->vBC = $std->vBC; |
||
1218 | $this->stdPIS->pPIS = $std->pPIS; |
||
1219 | $this->stdPIS->vPIS = $std->vPIS; |
||
1220 | $this->buildQEntity(); |
||
1221 | } |
||
1222 | |||
1223 | /** |
||
1224 | * Load fields for tag PIS [Q03], belongs to [Q] |
||
1225 | * Q03|CST|qBCProd|vAliqProd|vPIS| |
||
1226 | * @param stdClass $std |
||
1227 | * @return void |
||
1228 | */ |
||
1229 | protected function q03Entity($std) |
||
1230 | { |
||
1231 | $this->stdPIS->CST = $std->CST; |
||
1232 | $this->stdPIS->vPIS = $std->vPIS; |
||
1233 | $this->stdPIS->qBCProd = $std->qBCProd; |
||
1234 | $this->stdPIS->vAliqProd = $std->vAliqProd; |
||
1235 | $this->buildQEntity(); |
||
1236 | } |
||
1237 | |||
1238 | /** |
||
1239 | * Load fields for tag PIS [Q04], belongs to [Q] |
||
1240 | * Q04|CST| |
||
1241 | * @param stdClass $std |
||
1242 | * @return void |
||
1243 | */ |
||
1244 | protected function q04Entity($std) |
||
1245 | { |
||
1246 | $this->stdPIS->CST = $std->CST; |
||
1247 | $this->buildQEntity(); |
||
1248 | } |
||
1249 | |||
1250 | /** |
||
1251 | * Load fields for tag PIS [Q05], belongs to [Q] |
||
1252 | * Q05|CST|vPIS| |
||
1253 | * @param stdClass $std |
||
1254 | * @return void |
||
1255 | */ |
||
1256 | protected function q05Entity($std) |
||
1257 | { |
||
1258 | $this->stdPIS->CST = $std->CST; |
||
1259 | $this->stdPIS->vPIS = $std->vPIS; |
||
1260 | $this->buildQEntity(); |
||
1261 | } |
||
1262 | |||
1263 | /** |
||
1264 | * Load fields for tag PIS [Q07], belongs to [Q] |
||
1265 | * Q07|vBC|pPIS| |
||
1266 | * @param stdClass $std |
||
1267 | * @return void |
||
1268 | */ |
||
1269 | protected function q07Entity($std) |
||
1270 | { |
||
1271 | $this->stdPIS->vBC = $std->vBC; |
||
1272 | $this->stdPIS->pPIS = $std->pPIS; |
||
1273 | $this->buildQEntity(); |
||
1274 | } |
||
1275 | |||
1276 | /** |
||
1277 | * Load fields for tag PIS [Q10], belongs to [Q] |
||
1278 | * Q10|qBCProd|vAliqProd| |
||
1279 | * @param stdClass $std |
||
1280 | * @return void |
||
1281 | */ |
||
1282 | protected function q10Entity($std) |
||
1283 | { |
||
1284 | $this->stdPIS->qBCProd = $std->qBCProd; |
||
1285 | $this->stdPIS->vAliqProd = $std->vAliqProd; |
||
1286 | $this->buildQEntity(); |
||
1287 | } |
||
1288 | |||
1289 | /** |
||
1290 | * Create tag PIS [Q] |
||
1291 | * Qxx|CST|vBC|pPIS|vPIS|qBCProd|vAliqProd| |
||
1292 | * @return void |
||
1293 | */ |
||
1294 | protected function buildQEntity() |
||
1295 | { |
||
1296 | $this->make->tagPIS($this->stdPIS); |
||
0 ignored issues
–
show
The method
tagPIS() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1297 | } |
||
1298 | |||
1299 | /** |
||
1300 | * Load fields for tag PISST [R] |
||
1301 | * R|vPIS| |
||
1302 | * @param stdClass $std |
||
1303 | * @return void |
||
1304 | */ |
||
1305 | protected function rEntity($std) |
||
1306 | { |
||
1307 | //carrega numero do item |
||
1308 | $std->item = $this->item; |
||
1309 | $this->stdPISST = $std; |
||
1310 | $this->stdPISST->vBC = null; |
||
1311 | $this->stdPISST->pPIS = null; |
||
1312 | $this->stdPISST->vPIS = null; |
||
1313 | $this->stdPISST->qBCProd = null; |
||
1314 | $this->stdPISST->vAliqProd = null; |
||
1315 | } |
||
1316 | |||
1317 | /** |
||
1318 | * Load fields for tag PISST [R02], belongs to [R] |
||
1319 | * R02|vBC|pPIS| |
||
1320 | * @param stdClass $std |
||
1321 | * @return void |
||
1322 | */ |
||
1323 | protected function r02Entity($std) |
||
1324 | { |
||
1325 | $this->stdPISST->vBC = $std->vBC; |
||
1326 | $this->stdPISST->pPIS = $std->pPIS; |
||
1327 | $this->buildREntity(); |
||
1328 | } |
||
1329 | |||
1330 | /** |
||
1331 | * Load fields for tag PISST [R04], belongs to [R] |
||
1332 | * R04|qBCProd|vAliqProd|vPIS| |
||
1333 | * @param stdClass $std |
||
1334 | * @return void |
||
1335 | */ |
||
1336 | protected function r04Entity($std) |
||
1337 | { |
||
1338 | $this->stdPISST->qBCProd = $std->qBCProd; |
||
1339 | $this->stdPISST->vAliqProd = $std->vAliqProd; |
||
1340 | $this->stdPISST->vPIS = $std->vPIS; |
||
1341 | $this->buildREntity(); |
||
1342 | } |
||
1343 | |||
1344 | /** |
||
1345 | * Create tag PISST |
||
1346 | * Rxx|vBC|pPIS|qBCProd|vAliqProd|vPIS| |
||
1347 | * @return void |
||
1348 | */ |
||
1349 | protected function buildREntity() |
||
1350 | { |
||
1351 | $this->make->tagPISST($this->stdPISST); |
||
0 ignored issues
–
show
The method
tagPISST() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1352 | } |
||
1353 | |||
1354 | /** |
||
1355 | * Load fields for tag COFINS [S] |
||
1356 | * S| |
||
1357 | * @param stdClass $std |
||
1358 | * @return void |
||
1359 | */ |
||
1360 | protected function sEntity($std) |
||
1361 | { |
||
1362 | //carrega numero do item |
||
1363 | $std->item = $this->item; |
||
1364 | $this->stdCOFINS = $std; |
||
1365 | $this->stdCOFINS->vBC = null; |
||
1366 | $this->stdCOFINS->pCOFINS = null; |
||
1367 | $this->stdCOFINS->vCOFINS = null; |
||
1368 | $this->stdCOFINS->qBCProd = null; |
||
1369 | $this->stdCOFINS->vAliqProd = null; |
||
1370 | } |
||
1371 | |||
1372 | /** |
||
1373 | * Load fields for tag COFINS [S02], belongs to [S] |
||
1374 | * S02|CST|vBC|pCOFINS|vCOFINS| |
||
1375 | * @param stdClass $std |
||
1376 | * @return void |
||
1377 | */ |
||
1378 | protected function s02Entity($std) |
||
1379 | { |
||
1380 | $this->stdCOFINS->CST = $std->CST; |
||
1381 | $this->stdCOFINS->vBC = $std->vBC; |
||
1382 | $this->stdCOFINS->pCOFINS = $std->pCOFINS; |
||
1383 | $this->stdCOFINS->vCOFINS = $std->vCOFINS; |
||
1384 | $this->buildSEntity(); |
||
1385 | } |
||
1386 | |||
1387 | /** |
||
1388 | * Load fields for tag COFINS [S03], belongs to [S] |
||
1389 | * S03|CST|qBCProd|vAliqProd|vCOFINS| |
||
1390 | * @param stdClass $std |
||
1391 | * @return void |
||
1392 | */ |
||
1393 | protected function s03Entity($std) |
||
1394 | { |
||
1395 | $this->stdCOFINS->CST = $std->CST; |
||
1396 | $this->stdCOFINS->qBCProd = $std->qBCProd; |
||
1397 | $this->stdCOFINS->vAliqProd = $std->vAliqProd; |
||
1398 | $this->stdCOFINS->vCOFINS = $std->vCOFINS; |
||
1399 | $this->buildSEntity(); |
||
1400 | } |
||
1401 | |||
1402 | /** |
||
1403 | * Load fields for tag COFINS [S04], belongs to [S] |
||
1404 | * S04|CST| |
||
1405 | * @param stdClass $std |
||
1406 | * @return void |
||
1407 | */ |
||
1408 | protected function s04Entity($std) |
||
1409 | { |
||
1410 | $this->stdCOFINS->CST = $std->CST; |
||
1411 | $this->buildSEntity(); |
||
1412 | } |
||
1413 | |||
1414 | /** |
||
1415 | * Load fields for tag COFINS [S05], belongs to [S] |
||
1416 | * S05|CST|vCOFINS| |
||
1417 | * @param stdClass $std |
||
1418 | * @return void |
||
1419 | */ |
||
1420 | protected function s05Entity($std) |
||
1421 | { |
||
1422 | $this->stdCOFINS->CST = $std->CST; |
||
1423 | $this->stdCOFINS->vCOFINS = $std->vCOFINS; |
||
1424 | } |
||
1425 | |||
1426 | /** |
||
1427 | * Load fields for tag COFINS [S07], belongs to [S] |
||
1428 | * S07|vBC|pCOFINS| |
||
1429 | * @param stdClass $std |
||
1430 | * @return void |
||
1431 | */ |
||
1432 | protected function s07Entity($std) |
||
1433 | { |
||
1434 | $this->stdCOFINS->vBC = $std->vBC; |
||
1435 | $this->stdCOFINS->pCOFINS = $std->pCOFINS; |
||
1436 | $this->buildSEntity(); |
||
1437 | } |
||
1438 | |||
1439 | /** |
||
1440 | * Load fields for tag COFINS [S09], belongs to [S] |
||
1441 | * S09|qBCProd|vAliqProd| |
||
1442 | * @param stdClass $std |
||
1443 | * @return void |
||
1444 | */ |
||
1445 | protected function s09Entity($std) |
||
1446 | { |
||
1447 | $this->stdCOFINS->qBCProd = $std->qBCProd; |
||
1448 | $this->stdCOFINS->vAliqProd = $std->vAliqProd; |
||
1449 | $this->buildSEntity(); |
||
1450 | } |
||
1451 | |||
1452 | /** |
||
1453 | * Create tag COFINS [S] |
||
1454 | * Sxx|CST|vBC|pCOFINS|vCOFINS|qBCProd|vAliqProd| |
||
1455 | * @return void |
||
1456 | */ |
||
1457 | protected function buildSEntity() |
||
1458 | { |
||
1459 | $this->make->tagCOFINS($this->stdCOFINS); |
||
0 ignored issues
–
show
The method
tagCOFINS() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1460 | } |
||
1461 | |||
1462 | /** |
||
1463 | * Load fields for tag COFINSST [T] |
||
1464 | * T|vCOFINS| |
||
1465 | * @param stdClass $std |
||
1466 | * @return void |
||
1467 | */ |
||
1468 | protected function tEntity($std) |
||
1469 | { |
||
1470 | //carrega numero do item |
||
1471 | $std->item = $this->item; |
||
1472 | $this->stdCOFINSST = $std; |
||
1473 | $this->stdCOFINSST->vBC = null; |
||
1474 | $this->stdCOFINSST->pCOFINS = null; |
||
1475 | $this->stdCOFINSST->vCOFINS = null; |
||
1476 | $this->stdCOFINSST->qBCProd = null; |
||
1477 | $this->stdCOFINSST->vAliqProd = null; |
||
1478 | } |
||
1479 | |||
1480 | /** |
||
1481 | * Load fields for tag COFINSST [T02], belongs to [T] |
||
1482 | * T02|vBC|pCOFINS| |
||
1483 | * @param stdClass $std |
||
1484 | * @return void |
||
1485 | */ |
||
1486 | protected function t02Entity($std) |
||
1487 | { |
||
1488 | $this->stdCOFINSST->vBC = $std->vBC; |
||
1489 | $this->stdCOFINSST->pCOFINS = $std->pCOFINS; |
||
1490 | $this->buildTEntity(); |
||
1491 | } |
||
1492 | |||
1493 | /** |
||
1494 | * Load fields for tag COFINSST [T04], belongs to [T] |
||
1495 | * T04|qBCProd|vAliqProd| |
||
1496 | * @param stdClass $std |
||
1497 | * @return void |
||
1498 | */ |
||
1499 | protected function t04Entity($std) |
||
1500 | { |
||
1501 | $this->stdCOFINSST->qBCProd = $std->qBCProd; |
||
1502 | $this->stdCOFINSST->vAliqProd = $std->vAliqProd; |
||
1503 | $this->buildTEntity(); |
||
1504 | } |
||
1505 | |||
1506 | /** |
||
1507 | * Create tag COFINSST [T] |
||
1508 | * Txx|vBC|pCOFINS|qBCProd|vAliqProd|vCOFINS| |
||
1509 | * @return void |
||
1510 | */ |
||
1511 | protected function buildTEntity() |
||
1512 | { |
||
1513 | $this->stdCOFINSST->item = $this->item; |
||
1514 | $this->make->tagCOFINSST($this->stdCOFINSST); |
||
0 ignored issues
–
show
The method
tagCOFINSST() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1515 | } |
||
1516 | |||
1517 | /** |
||
1518 | * Create tag ISSQN [U] |
||
1519 | * U|vBC|vAliq|vISSQN|cMunFG|cListServ|vDeducao|vOutro|vDescIncond |
||
1520 | * |vDescCond|vISSRet|indISS|cServico|cMun|cPais|nProcesso|indIncentivo| |
||
1521 | * @param stdClass $std |
||
1522 | * @return void |
||
1523 | */ |
||
1524 | protected function uEntity($std) |
||
1525 | { |
||
1526 | $std->item = $this->item; |
||
1527 | $this->make->tagISSQN($std); |
||
0 ignored issues
–
show
The method
tagISSQN() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1528 | } |
||
1529 | |||
1530 | /** |
||
1531 | * Create tag tagimpostoDevol [UA] |
||
1532 | * UA|pDevol|vIPIDevol| |
||
1533 | * @param stdClass $std |
||
1534 | * @return void |
||
1535 | */ |
||
1536 | protected function uaEntity($std) |
||
1537 | { |
||
1538 | $std->item = $this->item; |
||
1539 | $this->make->tagimpostoDevol($std); |
||
0 ignored issues
–
show
The method
tagimpostoDevol() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1540 | } |
||
1541 | |||
1542 | /** |
||
1543 | * Linha W [W] |
||
1544 | * W| |
||
1545 | * @param stdClass $std |
||
1546 | * @return void |
||
1547 | */ |
||
1548 | protected function wEntity($std) |
||
1549 | { |
||
1550 | //fake não faz nada |
||
1551 | $field = null; |
||
1552 | } |
||
1553 | |||
1554 | /** |
||
1555 | * Cria tag ICMSTot [W02], belongs to [W] |
||
1556 | * W02|vBC|vICMS|vICMSDeson|vBCST|vST|vProd|vFrete|vSeg|vDesc|vII|vIPI|vPIS|vCOFINS|vOutro|vNF|vTotTrib| |
||
1557 | * |
||
1558 | * NOTE: adjusted for NT2016_002_v1.30 |
||
1559 | * W02|vBC|vICMS|vICMSDeson|vFCP|vBCST|vST|vFCPST|vFCPSTRet|vProd|vFrete|vSeg|vDesc|vII|vIPI|vIPIDevol|vPIS|vCOFINS|vOutro|vNF|vTotTrib| |
||
1560 | * @param stdClass $std |
||
1561 | * @return void |
||
1562 | */ |
||
1563 | protected function w02Entity($std) |
||
1564 | { |
||
1565 | $this->make->tagICMSTot($std); |
||
0 ignored issues
–
show
|
|||
1566 | } |
||
1567 | |||
1568 | /** |
||
1569 | * Create tag ISSQNTot [W17], belongs to [W] |
||
1570 | * W17|vServ|vBC|vISS|vPIS|vCOFINS|dCompet|vDeducao|vOutro|vDescIncond |
||
1571 | * |vDescCond|vISSRet|cRegTrib| |
||
1572 | * @param stdClass $std |
||
1573 | * @return void |
||
1574 | */ |
||
1575 | protected function w17Entity($std) |
||
1576 | { |
||
1577 | $this->make->tagISSQNTot($std); |
||
0 ignored issues
–
show
The method
tagISSQNTot() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1578 | } |
||
1579 | |||
1580 | /** |
||
1581 | * Create tag retTrib [W23], belongs to [W] |
||
1582 | * W23|vRetPIS|vRetCOFINS|vRetCSLL|vBCIRRF|vIRRF|vBCRetPrev|vRetPrev| |
||
1583 | * @param stdClass $std |
||
1584 | * @return void |
||
1585 | */ |
||
1586 | protected function w23Entity($std) |
||
1587 | { |
||
1588 | $this->make->tagretTrib($std); |
||
0 ignored issues
–
show
The method
tagretTrib() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1589 | } |
||
1590 | |||
1591 | /** |
||
1592 | * Create tag transp [X] |
||
1593 | * X|modFrete| |
||
1594 | * @param stdClass $std |
||
1595 | * @return void |
||
1596 | */ |
||
1597 | protected function xEntity($std) |
||
1598 | { |
||
1599 | $this->make->tagtransp($std); |
||
0 ignored issues
–
show
The method
tagtransp() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1600 | } |
||
1601 | |||
1602 | /** |
||
1603 | * Load fields for tag transporta [X03], belongs to [X] |
||
1604 | * X03|xNome|IE|xEnder|xMun|UF| |
||
1605 | * @param stdClass $std |
||
1606 | * @return void |
||
1607 | */ |
||
1608 | protected function x03Entity($std) |
||
1609 | { |
||
1610 | $this->stdTransporta = $std; |
||
1611 | } |
||
1612 | |||
1613 | /** |
||
1614 | * Load fields for tag transporta [X04], with CNPJ, belonsgs to [X03] |
||
1615 | * X04|CNPJ| |
||
1616 | * @param stdClass $std |
||
1617 | * @return void |
||
1618 | */ |
||
1619 | protected function x04Entity($std) |
||
1620 | { |
||
1621 | $this->stdTransporta->CNPJ = $std->CNPJ; |
||
1622 | $this->stdTransporta->CPF = null; |
||
1623 | $this->make->tagtransporta($this->stdTransporta); |
||
0 ignored issues
–
show
The method
tagtransporta() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1624 | $this->stdTransporta = null; |
||
1625 | } |
||
1626 | |||
1627 | /** |
||
1628 | * Load fields for tag transporta [X05], with CPF, belonsgs to [X03] |
||
1629 | * X05|CPF| |
||
1630 | * @param stdClass $std |
||
1631 | * @return void |
||
1632 | */ |
||
1633 | protected function x05Entity($std) |
||
1634 | { |
||
1635 | $this->stdTransporta->CPF = $std->CPF; |
||
1636 | $this->stdTransporta->CNPJ = null; |
||
1637 | $this->make->tagtransporta($this->stdTransporta); |
||
0 ignored issues
–
show
The method
tagtransporta() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1638 | $this->stdTransporta = null; |
||
1639 | } |
||
1640 | |||
1641 | /** |
||
1642 | * Load fields for tag retTransp [X11], belongs to [X] |
||
1643 | * X11|vServ|vBCRet|pICMSRet|vICMSRet|CFOP|cMunFG| |
||
1644 | * @param stdClass $std |
||
1645 | * @return void |
||
1646 | */ |
||
1647 | protected function x11Entity($std) |
||
1648 | { |
||
1649 | $this->make->tagretTransp($std); |
||
0 ignored issues
–
show
The method
tagretTransp() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1650 | } |
||
1651 | |||
1652 | /** |
||
1653 | * Create tag veicTransp [X18], belongs to [X] |
||
1654 | * X18|placa|UF|RNTC| |
||
1655 | * @param stdClass $std |
||
1656 | * @return void |
||
1657 | */ |
||
1658 | protected function x18Entity($std) |
||
1659 | { |
||
1660 | $this->make->tagveicTransp($std); |
||
0 ignored issues
–
show
The method
tagveicTransp() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1661 | } |
||
1662 | |||
1663 | /** |
||
1664 | * Create tag reboque [X22], belogns to [X] |
||
1665 | * X22|placa|UF|RNTC|vagao|balsa| |
||
1666 | * @param stdClass $std |
||
1667 | * @return void |
||
1668 | */ |
||
1669 | protected function x22Entity($std) |
||
1670 | { |
||
1671 | $this->make->tagreboque($std); |
||
0 ignored issues
–
show
The method
tagreboque() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1672 | } |
||
1673 | |||
1674 | /** |
||
1675 | * Create tag vol [X26], belongs to [X] |
||
1676 | * X26|qVol|esp|marca|nVol|pesoL|pesoB| |
||
1677 | * @param stdClass $std |
||
1678 | * @return void |
||
1679 | */ |
||
1680 | protected function x26Entity($std) |
||
1681 | { |
||
1682 | $this->volId += 1; |
||
1683 | $std->item = $this->volId; |
||
1684 | $this->make->tagvol($std); |
||
0 ignored issues
–
show
The method
tagvol() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1685 | } |
||
1686 | |||
1687 | /** |
||
1688 | * Create tag lacre [X33], belongs to [X] |
||
1689 | * X33|nLacre| |
||
1690 | * @param stdClass $std |
||
1691 | * @return void |
||
1692 | */ |
||
1693 | protected function x33Entity($std) |
||
1694 | { |
||
1695 | $std->item = $this->volId; |
||
1696 | $this->make->taglacres($std); |
||
0 ignored issues
–
show
The method
taglacres() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1697 | } |
||
1698 | |||
1699 | /** |
||
1700 | * Create tag vol |
||
1701 | * @param stdClass $std |
||
1702 | * @return void |
||
1703 | */ |
||
1704 | protected function buildVolEntity($std) |
||
1705 | { |
||
1706 | $this->make->tagvol($std); |
||
0 ignored issues
–
show
The method
tagvol() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1707 | } |
||
1708 | |||
1709 | /** |
||
1710 | * yEntity [Y] |
||
1711 | * Y| |
||
1712 | * |
||
1713 | * NOTE: adjusted for NT2016_002_v1.30 |
||
1714 | * Y|vTroco| |
||
1715 | * @param stdClass $std |
||
1716 | * @return void |
||
1717 | */ |
||
1718 | protected function yEntity($std) |
||
1719 | { |
||
1720 | $this->make->tagpag($std); |
||
0 ignored issues
–
show
The method
tagpag() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1721 | } |
||
1722 | |||
1723 | /** |
||
1724 | * Creates tag detPag and card [YA] |
||
1725 | * YA|tPag|vPag|CNPJ|tBand|cAut|tpIntegra| |
||
1726 | * @param stdClass $std |
||
1727 | * @return void |
||
1728 | */ |
||
1729 | protected function yaEntity($std) |
||
1730 | { |
||
1731 | $this->make->tagdetPag($std); |
||
0 ignored issues
–
show
The method
tagdetPag() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1732 | } |
||
1733 | |||
1734 | /** |
||
1735 | * Create tag fat [Y02] |
||
1736 | * Y02|nFat|vOrig|vDesc|vLiq| |
||
1737 | * @param stdClass $std |
||
1738 | * @return void |
||
1739 | */ |
||
1740 | protected function y02Entity($std) |
||
1741 | { |
||
1742 | $this->make->tagfat($std); |
||
1743 | } |
||
1744 | |||
1745 | /** |
||
1746 | * Create tag dup [Y07] |
||
1747 | * Y07|nDup|dVenc|vDup| |
||
1748 | * @param stdClass $std |
||
1749 | * @return void |
||
1750 | */ |
||
1751 | protected function y07Entity($std) |
||
1752 | { |
||
1753 | $this->make->tagdup($std); |
||
1754 | } |
||
1755 | |||
1756 | /** |
||
1757 | * Create a tag infAdic [Z] |
||
1758 | * Z|infAdFisco|infCpl| |
||
1759 | * @param stdClass $std |
||
1760 | * @return void |
||
1761 | */ |
||
1762 | protected function zEntity($std) |
||
1763 | { |
||
1764 | $this->make->taginfAdic($std); |
||
0 ignored issues
–
show
The method
taginfAdic() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1765 | } |
||
1766 | |||
1767 | /** |
||
1768 | * Create tag obsCont [Z04] |
||
1769 | * Z04|xCampo|xTexto| |
||
1770 | * @param stdClass $std |
||
1771 | * @return void |
||
1772 | */ |
||
1773 | protected function z04Entity($std) |
||
1774 | { |
||
1775 | $this->make->tagobsCont($std); |
||
1776 | } |
||
1777 | |||
1778 | /** |
||
1779 | * Create tag obsFisco [Z07] |
||
1780 | * Z07|xCampo|xTexto| |
||
1781 | * @param stdClass $std |
||
1782 | * @return void |
||
1783 | */ |
||
1784 | protected function z07Entity($std) |
||
1785 | { |
||
1786 | $this->make->tagobsFisco($std); |
||
1787 | } |
||
1788 | |||
1789 | /** |
||
1790 | * Create tag procRef [Z10] |
||
1791 | * Z10|nProc|indProc| |
||
1792 | * @param stdClass $std |
||
1793 | * @return void |
||
1794 | */ |
||
1795 | protected function z10Entity($std) |
||
1796 | { |
||
1797 | $this->make->tagprocRef($std); |
||
0 ignored issues
–
show
The method
tagprocRef() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1798 | } |
||
1799 | |||
1800 | /** |
||
1801 | * Create tag exporta [ZA] |
||
1802 | * ZA|UFSaidaPais|xLocExporta|xLocDespacho| |
||
1803 | * @param stdClass $std |
||
1804 | * @return void |
||
1805 | */ |
||
1806 | protected function zaEntity($std) |
||
1807 | { |
||
1808 | $this->make->tagexporta($std); |
||
0 ignored issues
–
show
The method
tagexporta() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1809 | } |
||
1810 | |||
1811 | /** |
||
1812 | * Create tag compra [ZB] |
||
1813 | * ZB|xNEmp|xPed|xCont| |
||
1814 | * @param stdClass $std |
||
1815 | * @return void |
||
1816 | */ |
||
1817 | protected function zbEntity($std) |
||
1818 | { |
||
1819 | $this->make->tagcompra($std); |
||
0 ignored issues
–
show
|
|||
1820 | } |
||
1821 | |||
1822 | /** |
||
1823 | * Create tag cana [ZC] |
||
1824 | * ZC|safra|ref|qTotMes|qTotAnt|qTotGer|vFor|vTotDed|vLiqFor| |
||
1825 | * @param stdClass $std |
||
1826 | * @return void |
||
1827 | */ |
||
1828 | protected function zcEntity($std) |
||
1829 | { |
||
1830 | $this->make->tagcana($std); |
||
0 ignored issues
–
show
The method
tagcana() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1831 | } |
||
1832 | |||
1833 | /** |
||
1834 | * Create tag forDia [ZC04] |
||
1835 | * ZC04|dia|qtde| |
||
1836 | * @param stdClass $std |
||
1837 | * @return void |
||
1838 | */ |
||
1839 | protected function zc04Entity($std) |
||
1840 | { |
||
1841 | $this->make->tagforDia($std); |
||
0 ignored issues
–
show
The method
tagforDia() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1842 | } |
||
1843 | |||
1844 | /** |
||
1845 | * Create tag deduc [ZC10] |
||
1846 | * ZC10|xDed|vDed| |
||
1847 | * @param stdClass $std |
||
1848 | * @return void |
||
1849 | */ |
||
1850 | protected function zc10Entity($std) |
||
1851 | { |
||
1852 | $this->make->tagdeduc($std); |
||
0 ignored issues
–
show
The method
tagdeduc() does not seem to exist on object<NFePHP\CTe\Make> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
1853 | } |
||
1854 | |||
1855 | /** |
||
1856 | * Create tag infNFeSupl com o qrCode para impressão da DANFCE [ZX01] |
||
1857 | * ZX01|qrcode| |
||
1858 | * |
||
1859 | * NOTE: Adjusted for NT2016_002_v1.30 |
||
1860 | * ZX01|qrcode|urlChave| |
||
1861 | * @param stdClass $std |
||
1862 | * @return void |
||
1863 | */ |
||
1864 | protected function zx01Entity($std) |
||
1865 | { |
||
1866 | $this->make->taginfNFeSupl($std); |
||
0 ignored issues
–
show
|
|||
1867 | } |
||
1868 | } |
||
1869 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: