@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | { |
345 | 345 | $this->textoAdic = ''; |
346 | 346 | //informações adicionais |
347 | - $fontProduto = [ |
|
347 | + $fontProduto = [ |
|
348 | 348 | 'font' => $this->fontePadrao, |
349 | 349 | 'size' => 8, |
350 | 350 | 'style' => '' |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | //? 'Inf. Contribuinte: ' . $this->anfaveaDANFE($this->getTagValue($this->infAdic, "infCpl")) |
362 | 362 | ? 'Inf. Contribuinte: ' . $this->getTagValue($this->infAdic, "infCpl") |
363 | 363 | : ''; |
364 | - $infPedido = $this->geraInformacoesDaTagCompra(); |
|
364 | + $infPedido = $this->geraInformacoesDaTagCompra(); |
|
365 | 365 | if ($infPedido != "") { |
366 | 366 | $this->textoAdic .= $infPedido; |
367 | 367 | } |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | if ($hdadosadic > 70) { |
407 | 407 | for ($f = 8; $f > 3; $f--) { |
408 | 408 | $this->pdf->setFont($this->fontePadrao, '', $f); |
409 | - $fontProduto = [ |
|
409 | + $fontProduto = [ |
|
410 | 410 | 'font' => $this->fontePadrao, |
411 | 411 | 'size' => $f, |
412 | 412 | 'style' => '' |
@@ -571,7 +571,7 @@ discard block |
||
571 | 571 | |
572 | 572 | if ($this->orientacao == 'P') { |
573 | 573 | $hDispo1 -= 24 * $this->qCanhoto; //para canhoto |
574 | - $w = $this->wPrint; |
|
574 | + $w = $this->wPrint; |
|
575 | 575 | } else { |
576 | 576 | $hcanhoto = $this->hPrint; //para canhoto |
577 | 577 | $w = $this->wPrint - $this->wCanhoto; |
@@ -849,7 +849,7 @@ discard block |
||
849 | 849 | 'Entrega:' . $dom->getElementsByTagName('fabEntrega')->item(0)->nodeValue . ' ' : ''; |
850 | 850 | $dca = !empty($dom->getElementsByTagName('dca')->item(0)->nodeValue) ? |
851 | 851 | 'dca:' . $dom->getElementsByTagName('dca')->item(0)->nodeValue . ' ' : ''; |
852 | - $texto .= "" . $versao . $especieNF . $fabEntrega . $dca; |
|
852 | + $texto .= "" . $versao . $especieNF . $fabEntrega . $dca; |
|
853 | 853 | if (isset($t)) { |
854 | 854 | if ($t->hasAttributes()) { |
855 | 855 | $texto .= " Transmissor "; |
@@ -895,7 +895,7 @@ discard block |
||
895 | 895 | } else { |
896 | 896 | if ($this->getTagValue($this->ide, "tpAmb") == '2') { |
897 | 897 | $resp['status'] = false; |
898 | - $resp['message'][] = "NFe EMITIDA EM HOMOLOGAÇÃO"; |
|
898 | + $resp['message'][] = "NFe EMITIDA EM HOMOLOGAÇÃO"; |
|
899 | 899 | } |
900 | 900 | $retEvento = $this->nfeProc->getElementsByTagName('retEvento')->item(0); |
901 | 901 | $cStat = $this->getTagValue($this->nfeProc, "cStat"); |
@@ -1051,7 +1051,7 @@ discard block |
||
1051 | 1051 | |
1052 | 1052 | //#################################################################################### |
1053 | 1053 | //coluna central Danfe |
1054 | - $x += $w; |
|
1054 | + $x += $w; |
|
1055 | 1055 | $w = round($maxW * 0.17, 0); //35; |
1056 | 1056 | $w2 = $w; |
1057 | 1057 | $h = 32; |
@@ -1109,7 +1109,7 @@ discard block |
||
1109 | 1109 | |
1110 | 1110 | //#################################################################################### |
1111 | 1111 | //coluna codigo de barras |
1112 | - $x += $w; |
|
1112 | + $x += $w; |
|
1113 | 1113 | $w = ($maxW - $w1 - $w2); //85; |
1114 | 1114 | $w3 = $w; |
1115 | 1115 | $h = 32; |
@@ -1172,7 +1172,7 @@ discard block |
||
1172 | 1172 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
1173 | 1173 | $w = $w1 + $w2; |
1174 | 1174 | $y = $oldY; |
1175 | - $oldY += $h; |
|
1175 | + $oldY += $h; |
|
1176 | 1176 | $x = $oldX; |
1177 | 1177 | $h = 7; |
1178 | 1178 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -1233,7 +1233,7 @@ discard block |
||
1233 | 1233 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1234 | 1234 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1235 | 1235 | //INSCRIÇÃO MUNICIPAL |
1236 | - $x += $w; |
|
1236 | + $x += $w; |
|
1237 | 1237 | $texto = 'INSCRIÇÃO MUNICIPAL'; |
1238 | 1238 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
1239 | 1239 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -1241,7 +1241,7 @@ discard block |
||
1241 | 1241 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1242 | 1242 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1243 | 1243 | //INSCRIÇÃO ESTADUAL DO SUBST. TRIBUT. |
1244 | - $x += $w; |
|
1244 | + $x += $w; |
|
1245 | 1245 | $texto = 'INSCRIÇÃO ESTADUAL DO SUBST. TRIBUT.'; |
1246 | 1246 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
1247 | 1247 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -1251,7 +1251,7 @@ discard block |
||
1251 | 1251 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1252 | 1252 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1253 | 1253 | //CNPJ |
1254 | - $x += $w; |
|
1254 | + $x += $w; |
|
1255 | 1255 | $w = ($maxW - (3 * $w)); |
1256 | 1256 | $texto = 'CNPJ / CPF'; |
1257 | 1257 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1355,7 +1355,7 @@ discard block |
||
1355 | 1355 | //NOME / RAZÃO SOCIAL |
1356 | 1356 | $w = round($maxW * 0.61, 0); |
1357 | 1357 | $w1 = $w; |
1358 | - $y += 3; |
|
1358 | + $y += 3; |
|
1359 | 1359 | $texto = 'NOME / RAZÃO SOCIAL'; |
1360 | 1360 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
1361 | 1361 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -1367,7 +1367,7 @@ discard block |
||
1367 | 1367 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'L', 1, ''); |
1368 | 1368 | } |
1369 | 1369 | //CNPJ / CPF |
1370 | - $x += $w; |
|
1370 | + $x += $w; |
|
1371 | 1371 | $w = round($maxW * 0.23, 0); |
1372 | 1372 | $w2 = $w; |
1373 | 1373 | $texto = 'CNPJ / CPF'; |
@@ -1390,7 +1390,7 @@ discard block |
||
1390 | 1390 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1391 | 1391 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1392 | 1392 | //DATA DA EMISSÃO |
1393 | - $x += $w; |
|
1393 | + $x += $w; |
|
1394 | 1394 | $w = $maxW - ($w1 + $w2); |
1395 | 1395 | $wx = $w; |
1396 | 1396 | $texto = 'DATA DA EMISSÃO'; |
@@ -1416,7 +1416,7 @@ discard block |
||
1416 | 1416 | //ENDEREÇO |
1417 | 1417 | $w = round($maxW * 0.47, 0); |
1418 | 1418 | $w1 = $w; |
1419 | - $y += $h; |
|
1419 | + $y += $h; |
|
1420 | 1420 | $x = $oldX; |
1421 | 1421 | $texto = 'ENDEREÇO'; |
1422 | 1422 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1428,7 +1428,7 @@ discard block |
||
1428 | 1428 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1429 | 1429 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'L', 0, '', true); |
1430 | 1430 | //BAIRRO / DISTRITO |
1431 | - $x += $w; |
|
1431 | + $x += $w; |
|
1432 | 1432 | $w = round($maxW * 0.21, 0); |
1433 | 1433 | $w2 = $w; |
1434 | 1434 | $texto = 'BAIRRO / DISTRITO'; |
@@ -1438,7 +1438,7 @@ discard block |
||
1438 | 1438 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1439 | 1439 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1440 | 1440 | //CEP |
1441 | - $x += $w; |
|
1441 | + $x += $w; |
|
1442 | 1442 | $w = $maxW - $w1 - $w2 - $wx; |
1443 | 1443 | $w2 = $w; |
1444 | 1444 | $texto = 'CEP'; |
@@ -1451,7 +1451,7 @@ discard block |
||
1451 | 1451 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1452 | 1452 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1453 | 1453 | //DATA DA SAÍDA |
1454 | - $x += $w; |
|
1454 | + $x += $w; |
|
1455 | 1455 | $w = $wx; |
1456 | 1456 | $texto = 'DATA DA SAÍDA/ENTRADA'; |
1457 | 1457 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1471,7 +1471,7 @@ discard block |
||
1471 | 1471 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1472 | 1472 | //MUNICÍPIO |
1473 | 1473 | $w = $w1; |
1474 | - $y += $h; |
|
1474 | + $y += $h; |
|
1475 | 1475 | $x = $oldX; |
1476 | 1476 | $texto = 'MUNICÍPIO'; |
1477 | 1477 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1486,7 +1486,7 @@ discard block |
||
1486 | 1486 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1487 | 1487 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'L', 0, ''); |
1488 | 1488 | //UF |
1489 | - $x += $w; |
|
1489 | + $x += $w; |
|
1490 | 1490 | $w = 8; |
1491 | 1491 | $texto = 'UF'; |
1492 | 1492 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1495,7 +1495,7 @@ discard block |
||
1495 | 1495 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1496 | 1496 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1497 | 1497 | //FONE / FAX |
1498 | - $x += $w; |
|
1498 | + $x += $w; |
|
1499 | 1499 | $w = round(($maxW - $w1 - $wx - 8) / 2, 0); |
1500 | 1500 | $w3 = $w; |
1501 | 1501 | $texto = 'FONE / FAX'; |
@@ -1507,7 +1507,7 @@ discard block |
||
1507 | 1507 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1508 | 1508 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1509 | 1509 | //INSCRIÇÃO ESTADUAL |
1510 | - $x += $w; |
|
1510 | + $x += $w; |
|
1511 | 1511 | $w = $maxW - $w1 - $wx - 8 - $w3; |
1512 | 1512 | $texto = 'INSCRIÇÃO ESTADUAL'; |
1513 | 1513 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1517,7 +1517,7 @@ discard block |
||
1517 | 1517 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1518 | 1518 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1519 | 1519 | //HORA DA SAÍDA |
1520 | - $x += $w; |
|
1520 | + $x += $w; |
|
1521 | 1521 | $w = $wx; |
1522 | 1522 | $texto = 'HORA DA SAÍDA/ENTRADA'; |
1523 | 1523 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1570,7 +1570,7 @@ discard block |
||
1570 | 1570 | //NOME / RAZÃO SOCIAL |
1571 | 1571 | $w = round($maxW * 0.61, 0); |
1572 | 1572 | $w1 = $w; |
1573 | - $y += 3; |
|
1573 | + $y += 3; |
|
1574 | 1574 | $texto = 'NOME / RAZÃO SOCIAL'; |
1575 | 1575 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
1576 | 1576 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -1585,7 +1585,7 @@ discard block |
||
1585 | 1585 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'L', 1, ''); |
1586 | 1586 | } |
1587 | 1587 | //CNPJ / CPF |
1588 | - $x += $w; |
|
1588 | + $x += $w; |
|
1589 | 1589 | $w = round($maxW * 0.23, 0); |
1590 | 1590 | $w2 = $w; |
1591 | 1591 | $texto = 'CNPJ / CPF'; |
@@ -1607,7 +1607,7 @@ discard block |
||
1607 | 1607 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1608 | 1608 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1609 | 1609 | //INSCRIÇÃO ESTADUAL |
1610 | - $x += $w; |
|
1610 | + $x += $w; |
|
1611 | 1611 | $w = $maxW - ($w1 + $w2); |
1612 | 1612 | $wx = $w; |
1613 | 1613 | $texto = 'INSCRIÇÃO ESTADUAL'; |
@@ -1626,7 +1626,7 @@ discard block |
||
1626 | 1626 | //ENDEREÇO |
1627 | 1627 | $w = round($maxW * 0.355, 0) + $wx; |
1628 | 1628 | $w1 = $w; |
1629 | - $y += $h; |
|
1629 | + $y += $h; |
|
1630 | 1630 | $x = $oldX; |
1631 | 1631 | $texto = 'ENDEREÇO'; |
1632 | 1632 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1637,7 +1637,7 @@ discard block |
||
1637 | 1637 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1638 | 1638 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'L', 0, '', true); |
1639 | 1639 | //BAIRRO / DISTRITO |
1640 | - $x += $w; |
|
1640 | + $x += $w; |
|
1641 | 1641 | $w = round($maxW * 0.335, 0); |
1642 | 1642 | $w2 = $w; |
1643 | 1643 | $texto = 'BAIRRO / DISTRITO'; |
@@ -1647,7 +1647,7 @@ discard block |
||
1647 | 1647 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1648 | 1648 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1649 | 1649 | //CEP |
1650 | - $x += $w; |
|
1650 | + $x += $w; |
|
1651 | 1651 | $w = $maxW - ($w1 + $w2); |
1652 | 1652 | $texto = 'CEP'; |
1653 | 1653 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1660,7 +1660,7 @@ discard block |
||
1660 | 1660 | //MUNICÍPIO |
1661 | 1661 | $w = round($maxW * 0.805, 0); |
1662 | 1662 | $w1 = $w; |
1663 | - $y += $h; |
|
1663 | + $y += $h; |
|
1664 | 1664 | $x = $oldX; |
1665 | 1665 | $texto = 'MUNICÍPIO'; |
1666 | 1666 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1672,7 +1672,7 @@ discard block |
||
1672 | 1672 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1673 | 1673 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'L', 0, ''); |
1674 | 1674 | //UF |
1675 | - $x += $w; |
|
1675 | + $x += $w; |
|
1676 | 1676 | $w = 8; |
1677 | 1677 | $texto = 'UF'; |
1678 | 1678 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1681,7 +1681,7 @@ discard block |
||
1681 | 1681 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1682 | 1682 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1683 | 1683 | //FONE / FAX |
1684 | - $x += $w; |
|
1684 | + $x += $w; |
|
1685 | 1685 | $w = $maxW - $w - $w1; |
1686 | 1686 | $texto = 'FONE / FAX'; |
1687 | 1687 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1723,7 +1723,7 @@ discard block |
||
1723 | 1723 | //NOME / RAZÃO SOCIAL |
1724 | 1724 | $w = round($maxW * 0.61, 0); |
1725 | 1725 | $w1 = $w; |
1726 | - $y += 3; |
|
1726 | + $y += 3; |
|
1727 | 1727 | $texto = 'NOME / RAZÃO SOCIAL'; |
1728 | 1728 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
1729 | 1729 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -1738,7 +1738,7 @@ discard block |
||
1738 | 1738 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'L', 1, ''); |
1739 | 1739 | } |
1740 | 1740 | //CNPJ / CPF |
1741 | - $x += $w; |
|
1741 | + $x += $w; |
|
1742 | 1742 | $w = round($maxW * 0.23, 0); |
1743 | 1743 | $w2 = $w; |
1744 | 1744 | $texto = 'CNPJ / CPF'; |
@@ -1760,7 +1760,7 @@ discard block |
||
1760 | 1760 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1761 | 1761 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1762 | 1762 | //INSCRIÇÃO ESTADUAL |
1763 | - $x += $w; |
|
1763 | + $x += $w; |
|
1764 | 1764 | $w = $maxW - ($w1 + $w2); |
1765 | 1765 | $wx = $w; |
1766 | 1766 | $texto = 'INSCRIÇÃO ESTADUAL'; |
@@ -1779,7 +1779,7 @@ discard block |
||
1779 | 1779 | //ENDEREÇO |
1780 | 1780 | $w = round($maxW * 0.355, 0) + $wx; |
1781 | 1781 | $w1 = $w; |
1782 | - $y += $h; |
|
1782 | + $y += $h; |
|
1783 | 1783 | $x = $oldX; |
1784 | 1784 | $texto = 'ENDEREÇO'; |
1785 | 1785 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1790,7 +1790,7 @@ discard block |
||
1790 | 1790 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1791 | 1791 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'L', 0, '', true); |
1792 | 1792 | //BAIRRO / DISTRITO |
1793 | - $x += $w; |
|
1793 | + $x += $w; |
|
1794 | 1794 | $w = round($maxW * 0.335, 0); |
1795 | 1795 | $w2 = $w; |
1796 | 1796 | $texto = 'BAIRRO / DISTRITO'; |
@@ -1800,7 +1800,7 @@ discard block |
||
1800 | 1800 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1801 | 1801 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1802 | 1802 | //CEP |
1803 | - $x += $w; |
|
1803 | + $x += $w; |
|
1804 | 1804 | $w = $maxW - ($w1 + $w2); |
1805 | 1805 | $texto = 'CEP'; |
1806 | 1806 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1813,7 +1813,7 @@ discard block |
||
1813 | 1813 | //MUNICÍPIO |
1814 | 1814 | $w = round($maxW * 0.805, 0); |
1815 | 1815 | $w1 = $w; |
1816 | - $y += $h; |
|
1816 | + $y += $h; |
|
1817 | 1817 | $x = $oldX; |
1818 | 1818 | $texto = 'MUNICÍPIO'; |
1819 | 1819 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1825,7 +1825,7 @@ discard block |
||
1825 | 1825 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1826 | 1826 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'L', 0, ''); |
1827 | 1827 | //UF |
1828 | - $x += $w; |
|
1828 | + $x += $w; |
|
1829 | 1829 | $w = 8; |
1830 | 1830 | $texto = 'UF'; |
1831 | 1831 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1834,7 +1834,7 @@ discard block |
||
1834 | 1834 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
1835 | 1835 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
1836 | 1836 | //FONE / FAX |
1837 | - $x += $w; |
|
1837 | + $x += $w; |
|
1838 | 1838 | $w = $maxW - $w - $w1; |
1839 | 1839 | $texto = 'FONE / FAX'; |
1840 | 1840 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -1936,7 +1936,7 @@ discard block |
||
1936 | 1936 | $h = 8; |
1937 | 1937 | $aFont = ['font' => $this->fontePadrao, 'size' => 7, 'style' => 'B']; |
1938 | 1938 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
1939 | - $y += 3; |
|
1939 | + $y += 3; |
|
1940 | 1940 | $dups = ""; |
1941 | 1941 | $dupcont = 0; |
1942 | 1942 | $nFat = $this->dup->length; |
@@ -2063,7 +2063,7 @@ discard block |
||
2063 | 2063 | $h = 8; |
2064 | 2064 | $aFont = ['font' => $this->fontePadrao, 'size' => 7, 'style' => 'B']; |
2065 | 2065 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
2066 | - $y += 3; |
|
2066 | + $y += 3; |
|
2067 | 2067 | $dups = ""; |
2068 | 2068 | $dupcont = 0; |
2069 | 2069 | if ($this->orientacao == 'P') { |
@@ -2096,7 +2096,7 @@ discard block |
||
2096 | 2096 | '90' => 'Sem pagamento', |
2097 | 2097 | '99' => 'Outros' |
2098 | 2098 | ]; |
2099 | - $bandeira = [ |
|
2099 | + $bandeira = [ |
|
2100 | 2100 | '01' => 'Visa', |
2101 | 2101 | '02' => 'Mastercard', |
2102 | 2102 | '03' => 'American', |
@@ -2306,7 +2306,7 @@ discard block |
||
2306 | 2306 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
2307 | 2307 | //NOME / RAZÃO SOCIAL |
2308 | 2308 | $w1 = $maxW * 0.29; |
2309 | - $y += 3; |
|
2309 | + $y += 3; |
|
2310 | 2310 | $texto = 'NOME / RAZÃO SOCIAL'; |
2311 | 2311 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2312 | 2312 | $this->pdf->textBox($x, $y, $w1, $h, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -2320,7 +2320,7 @@ discard block |
||
2320 | 2320 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
2321 | 2321 | $this->pdf->textBox($x, $y, $w1, $h, $texto, $aFont, 'B', 'L', 0, ''); |
2322 | 2322 | //FRETE POR CONTA |
2323 | - $x += $w1; |
|
2323 | + $x += $w1; |
|
2324 | 2324 | $w2 = $maxW * 0.15; |
2325 | 2325 | $texto = 'FRETE'; |
2326 | 2326 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -2351,7 +2351,7 @@ discard block |
||
2351 | 2351 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
2352 | 2352 | $this->pdf->textBox($x, $y, $w2, $h, $texto, $aFont, 'C', 'C', 1, ''); |
2353 | 2353 | //CÓDIGO ANTT |
2354 | - $x += $w2; |
|
2354 | + $x += $w2; |
|
2355 | 2355 | $texto = 'CÓDIGO ANTT'; |
2356 | 2356 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2357 | 2357 | $this->pdf->textBox($x, $y, $w2, $h, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -2365,7 +2365,7 @@ discard block |
||
2365 | 2365 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
2366 | 2366 | $this->pdf->textBox($x, $y, $w2, $h, $texto, $aFont, 'B', 'C', 0, ''); |
2367 | 2367 | //PLACA DO VEÍC |
2368 | - $x += $w2; |
|
2368 | + $x += $w2; |
|
2369 | 2369 | $texto = 'PLACA DO VEÍCULO'; |
2370 | 2370 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2371 | 2371 | $this->pdf->textBox($x, $y, $w2, $h, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -2383,7 +2383,7 @@ discard block |
||
2383 | 2383 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
2384 | 2384 | $this->pdf->textBox($x, $y, $w2, $h, $texto, $aFont, 'B', 'C', 0, ''); |
2385 | 2385 | //UF |
2386 | - $x += $w2; |
|
2386 | + $x += $w2; |
|
2387 | 2387 | $w3 = round($maxW * 0.04, 0); |
2388 | 2388 | $texto = 'UF'; |
2389 | 2389 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -2402,7 +2402,7 @@ discard block |
||
2402 | 2402 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
2403 | 2403 | $this->pdf->textBox($x, $y, $w3, $h, $texto, $aFont, 'B', 'C', 0, ''); |
2404 | 2404 | //CNPJ / CPF |
2405 | - $x += $w3; |
|
2405 | + $x += $w3; |
|
2406 | 2406 | $w = $maxW - ($w1 + 3 * $w2 + $w3); |
2407 | 2407 | $texto = 'CNPJ / CPF'; |
2408 | 2408 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -2429,7 +2429,7 @@ discard block |
||
2429 | 2429 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'C', 0, ''); |
2430 | 2430 | //##################################################################### |
2431 | 2431 | //ENDEREÇO |
2432 | - $y += $h; |
|
2432 | + $y += $h; |
|
2433 | 2433 | $x = $oldX; |
2434 | 2434 | $h = 7; |
2435 | 2435 | $w1 = $maxW * 0.44; |
@@ -2446,7 +2446,7 @@ discard block |
||
2446 | 2446 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
2447 | 2447 | $this->pdf->textBox($x, $y, $w1, $h, $texto, $aFont, 'B', 'L', 0, ''); |
2448 | 2448 | //MUNICÍPIO |
2449 | - $x += $w1; |
|
2449 | + $x += $w1; |
|
2450 | 2450 | $w2 = round($maxW * 0.30, 0); |
2451 | 2451 | $texto = 'MUNICÍPIO'; |
2452 | 2452 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -2461,7 +2461,7 @@ discard block |
||
2461 | 2461 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
2462 | 2462 | $this->pdf->textBox($x, $y, $w2, $h, $texto, $aFont, 'B', 'C', 0, ''); |
2463 | 2463 | //UF |
2464 | - $x += $w2; |
|
2464 | + $x += $w2; |
|
2465 | 2465 | $w3 = round($maxW * 0.04, 0); |
2466 | 2466 | $texto = 'UF'; |
2467 | 2467 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -2476,7 +2476,7 @@ discard block |
||
2476 | 2476 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
2477 | 2477 | $this->pdf->textBox($x, $y, $w3, $h, $texto, $aFont, 'B', 'C', 0, ''); |
2478 | 2478 | //INSCRIÇÃO ESTADUAL |
2479 | - $x += $w3; |
|
2479 | + $x += $w3; |
|
2480 | 2480 | $w = $maxW - ($w1 + $w2 + $w3); |
2481 | 2481 | $texto = 'INSCRIÇÃO ESTADUAL'; |
2482 | 2482 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -2505,7 +2505,7 @@ discard block |
||
2505 | 2505 | $volume->getElementsByTagName("pesoB")->item(0)->nodeValue : 0; |
2506 | 2506 | $pesoLiquido += !empty($volume->getElementsByTagName("pesoL")->item(0)->nodeValue) ? |
2507 | 2507 | $volume->getElementsByTagName("pesoL")->item(0)->nodeValue : 0; |
2508 | - $texto = !empty($this->transp->getElementsByTagName("esp")->item(0)->nodeValue) ? |
|
2508 | + $texto = !empty($this->transp->getElementsByTagName("esp")->item(0)->nodeValue) ? |
|
2509 | 2509 | $this->transp->getElementsByTagName("esp")->item(0)->nodeValue : ''; |
2510 | 2510 | if ($texto != $especie && $especie != '') { |
2511 | 2511 | //tem várias especies |
@@ -2535,7 +2535,7 @@ discard block |
||
2535 | 2535 | |
2536 | 2536 | //##################################################################### |
2537 | 2537 | //QUANTIDADE |
2538 | - $y += $h; |
|
2538 | + $y += $h; |
|
2539 | 2539 | $x = $oldX; |
2540 | 2540 | $h = 7; |
2541 | 2541 | $w1 = round($maxW * 0.10, 0); |
@@ -2548,7 +2548,7 @@ discard block |
||
2548 | 2548 | $this->pdf->textBox($x, $y, $w1, $h, $texto, $aFont, 'B', 'C', 0, ''); |
2549 | 2549 | } |
2550 | 2550 | //ESPÉCIE |
2551 | - $x += $w1; |
|
2551 | + $x += $w1; |
|
2552 | 2552 | $w2 = round($maxW * 0.17, 0); |
2553 | 2553 | $texto = 'ESPÉCIE'; |
2554 | 2554 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -2557,7 +2557,7 @@ discard block |
||
2557 | 2557 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
2558 | 2558 | $this->pdf->textBox($x, $y, $w2, $h, $texto, $aFont, 'B', 'C', 0, ''); |
2559 | 2559 | //MARCA |
2560 | - $x += $w2; |
|
2560 | + $x += $w2; |
|
2561 | 2561 | $texto = 'MARCA'; |
2562 | 2562 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2563 | 2563 | $this->pdf->textBox($x, $y, $w2, $h, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -2566,7 +2566,7 @@ discard block |
||
2566 | 2566 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
2567 | 2567 | $this->pdf->textBox($x, $y, $w2, $h, $texto, $aFont, 'B', 'C', 0, ''); |
2568 | 2568 | //NUMERAÇÃO |
2569 | - $x += $w2; |
|
2569 | + $x += $w2; |
|
2570 | 2570 | $texto = 'NUMERAÇÃO'; |
2571 | 2571 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2572 | 2572 | $this->pdf->textBox($x, $y, $w2, $h, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -2574,7 +2574,7 @@ discard block |
||
2574 | 2574 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
2575 | 2575 | $this->pdf->textBox($x, $y, $w2, $h, $texto, $aFont, 'B', 'C', 0, ''); |
2576 | 2576 | //PESO BRUTO |
2577 | - $x += $w2; |
|
2577 | + $x += $w2; |
|
2578 | 2578 | $w3 = round($maxW * 0.20, 0); |
2579 | 2579 | $texto = 'PESO BRUTO'; |
2580 | 2580 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -2587,7 +2587,7 @@ discard block |
||
2587 | 2587 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
2588 | 2588 | $this->pdf->textBox($x, $y, $w3, $h, $texto, $aFont, 'B', 'R', 0, ''); |
2589 | 2589 | //PESO LÍQUIDO |
2590 | - $x += $w3; |
|
2590 | + $x += $w3; |
|
2591 | 2591 | $w = $maxW - ($w1 + 3 * $w2 + $w3); |
2592 | 2592 | $texto = 'PESO LÍQUIDO'; |
2593 | 2593 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -2746,7 +2746,7 @@ discard block |
||
2746 | 2746 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
2747 | 2747 | $y += 3; |
2748 | 2748 | //desenha a caixa dos dados dos itens da NF |
2749 | - $hmax += 1; |
|
2749 | + $hmax += 1; |
|
2750 | 2750 | $texto = ''; |
2751 | 2751 | $this->pdf->textBox($x, $y, $w, $hmax); |
2752 | 2752 | //################################################################################## |
@@ -2759,21 +2759,21 @@ discard block |
||
2759 | 2759 | $this->pdf->textBox($x, $y, $w1, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2760 | 2760 | $this->pdf->line($x + $w1, $y, $x + $w1, $y + $hmax); |
2761 | 2761 | //DESCRIÇÃO DO PRODUTO / SERVIÇO |
2762 | - $x += $w1; |
|
2762 | + $x += $w1; |
|
2763 | 2763 | $w2 = round($w * 0.25, 0); |
2764 | 2764 | $texto = 'DESCRIÇÃO DO PRODUTO / SERVIÇO'; |
2765 | 2765 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2766 | 2766 | $this->pdf->textBox($x, $y, $w2, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2767 | 2767 | $this->pdf->line($x + $w2, $y, $x + $w2, $y + $hmax); |
2768 | 2768 | //NCM/SH |
2769 | - $x += $w2; |
|
2769 | + $x += $w2; |
|
2770 | 2770 | $w3 = round($w * 0.06, 0); |
2771 | 2771 | $texto = 'NCM/SH'; |
2772 | 2772 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2773 | 2773 | $this->pdf->textBox($x, $y, $w3, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2774 | 2774 | $this->pdf->line($x + $w3, $y, $x + $w3, $y + $hmax); |
2775 | 2775 | //O/CST ou O/CSOSN |
2776 | - $x += $w3; |
|
2776 | + $x += $w3; |
|
2777 | 2777 | $w4 = round($w * 0.05, 0); |
2778 | 2778 | $texto = 'O/CST'; // CRT = 2 ou CRT = 3 |
2779 | 2779 | if ($this->getTagValue($this->emit, 'CRT') == '1') { |
@@ -2783,77 +2783,77 @@ discard block |
||
2783 | 2783 | $this->pdf->textBox($x, $y, $w4, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2784 | 2784 | $this->pdf->line($x + $w4, $y, $x + $w4, $y + $hmax); |
2785 | 2785 | //CFOP |
2786 | - $x += $w4; |
|
2786 | + $x += $w4; |
|
2787 | 2787 | $w5 = round($w * 0.04, 0); |
2788 | 2788 | $texto = 'CFOP'; |
2789 | 2789 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2790 | 2790 | $this->pdf->textBox($x, $y, $w5, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2791 | 2791 | $this->pdf->line($x + $w5, $y, $x + $w5, $y + $hmax); |
2792 | 2792 | //UN |
2793 | - $x += $w5; |
|
2793 | + $x += $w5; |
|
2794 | 2794 | $w6 = round($w * 0.03, 0); |
2795 | 2795 | $texto = 'UN'; |
2796 | 2796 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2797 | 2797 | $this->pdf->textBox($x, $y, $w6, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2798 | 2798 | $this->pdf->line($x + $w6, $y, $x + $w6, $y + $hmax); |
2799 | 2799 | //QUANT |
2800 | - $x += $w6; |
|
2800 | + $x += $w6; |
|
2801 | 2801 | $w7 = round($w * 0.08, 0); |
2802 | 2802 | $texto = 'QUANT'; |
2803 | 2803 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2804 | 2804 | $this->pdf->textBox($x, $y, $w7, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2805 | 2805 | $this->pdf->line($x + $w7, $y, $x + $w7, $y + $hmax); |
2806 | 2806 | //VALOR UNIT |
2807 | - $x += $w7; |
|
2807 | + $x += $w7; |
|
2808 | 2808 | $w8 = round($w * 0.06, 0); |
2809 | 2809 | $texto = 'VALOR UNIT'; |
2810 | 2810 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2811 | 2811 | $this->pdf->textBox($x, $y, $w8, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2812 | 2812 | $this->pdf->line($x + $w8, $y, $x + $w8, $y + $hmax); |
2813 | 2813 | //VALOR TOTAL |
2814 | - $x += $w8; |
|
2814 | + $x += $w8; |
|
2815 | 2815 | $w9 = round($w * 0.06, 0); |
2816 | 2816 | $texto = 'VALOR TOTAL'; |
2817 | 2817 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2818 | 2818 | $this->pdf->textBox($x, $y, $w9, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2819 | 2819 | $this->pdf->line($x + $w9, $y, $x + $w9, $y + $hmax); |
2820 | 2820 | //VALOR DESCONTO |
2821 | - $x += $w9; |
|
2821 | + $x += $w9; |
|
2822 | 2822 | $w10 = round($w * 0.05, 0); |
2823 | 2823 | $texto = 'VALOR DESC'; |
2824 | 2824 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2825 | 2825 | $this->pdf->textBox($x, $y, $w10, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2826 | 2826 | $this->pdf->line($x + $w10, $y, $x + $w10, $y + $hmax); |
2827 | 2827 | //B.CÁLC ICMS |
2828 | - $x += $w10; |
|
2828 | + $x += $w10; |
|
2829 | 2829 | $w11 = round($w * 0.06, 0); |
2830 | 2830 | $texto = 'B.CÁLC ICMS'; |
2831 | 2831 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2832 | 2832 | $this->pdf->textBox($x, $y, $w11, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2833 | 2833 | $this->pdf->line($x + $w11, $y, $x + $w11, $y + $hmax); |
2834 | 2834 | //VALOR ICMS |
2835 | - $x += $w11; |
|
2835 | + $x += $w11; |
|
2836 | 2836 | $w12 = round($w * 0.06, 0); |
2837 | 2837 | $texto = 'VALOR ICMS'; |
2838 | 2838 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2839 | 2839 | $this->pdf->textBox($x, $y, $w12, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2840 | 2840 | $this->pdf->line($x + $w12, $y, $x + $w12, $y + $hmax); |
2841 | 2841 | //VALOR IPI |
2842 | - $x += $w12; |
|
2842 | + $x += $w12; |
|
2843 | 2843 | $w13 = round($w * 0.05, 0); |
2844 | 2844 | $texto = 'VALOR IPI'; |
2845 | 2845 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2846 | 2846 | $this->pdf->textBox($x, $y, $w13, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2847 | 2847 | $this->pdf->line($x + $w13, $y, $x + $w13, $y + $hmax); |
2848 | 2848 | //ALÍQ. ICMS |
2849 | - $x += $w13; |
|
2849 | + $x += $w13; |
|
2850 | 2850 | $w14 = round($w * 0.04, 0); |
2851 | 2851 | $texto = 'ALÍQ. ICMS'; |
2852 | 2852 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
2853 | 2853 | $this->pdf->textBox($x, $y, $w14, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
2854 | 2854 | $this->pdf->line($x + $w14, $y, $x + $w14, $y + $hmax); |
2855 | 2855 | //ALÍQ. IPI |
2856 | - $x += $w14; |
|
2856 | + $x += $w14; |
|
2857 | 2857 | $w15 = $w - ($w1 + $w2 + $w3 + $w4 + $w5 + $w6 + $w7 + $w8 + $w9 + $w10 + $w11 + $w12 + $w13 + $w14); |
2858 | 2858 | $texto = 'ALÍQ. IPI'; |
2859 | 2859 | $this->pdf->textBox($x, $y, $w15, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
@@ -2953,11 +2953,11 @@ discard block |
||
2953 | 2953 | $this->pdf->textBox($x, $y, $w4, $h, $texto, $aFont, 'T', 'C', 0, ''); |
2954 | 2954 | } |
2955 | 2955 | //CFOP |
2956 | - $x += $w4; |
|
2956 | + $x += $w4; |
|
2957 | 2957 | $texto = $prod->getElementsByTagName("CFOP")->item(0)->nodeValue; |
2958 | 2958 | $this->pdf->textBox($x, $y, $w5, $h, $texto, $aFont, 'T', 'C', 0, ''); |
2959 | 2959 | //Unidade |
2960 | - $x += $w5; |
|
2960 | + $x += $w5; |
|
2961 | 2961 | $texto = $uCom; |
2962 | 2962 | $this->pdf->textBox($x, $y, $w6, $h, $texto, $aFont, 'T', 'C', 0, ''); |
2963 | 2963 | //Unidade de medida tributável |
@@ -3219,7 +3219,7 @@ discard block |
||
3219 | 3219 | $veiculoTipo = $veicProd->getElementsByTagName("tpVeic")->item(0)->nodeValue; |
3220 | 3220 | |
3221 | 3221 | $veiculoMotor = $veicProd->getElementsByTagName("nMotor")->item(0)->nodeValue; |
3222 | - $veiculoCodigoModelo = $veicProd->getElementsByTagName("cMod")->item(0)->nodeValue; |
|
3222 | + $veiculoCodigoModelo = $veicProd->getElementsByTagName("cMod")->item(0)->nodeValue; |
|
3223 | 3223 | $veiculoHp = $veicProd->getElementsByTagName("pot")->item(0)->nodeValue; |
3224 | 3224 | $veiculoTipoPintura = $veicProd->getElementsByTagName("tpPint")->item(0)->nodeValue; |
3225 | 3225 | $veiculoMarcaModelo = $prod->getElementsByTagName("xProd")->item(0)->nodeValue; |
@@ -3304,7 +3304,7 @@ discard block |
||
3304 | 3304 | $aFont = ['font' => $this->fontePadrao, 'size' => 7, 'style' => 'B']; |
3305 | 3305 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
3306 | 3306 | //INSCRIÇÃO MUNICIPAL |
3307 | - $y += 3; |
|
3307 | + $y += 3; |
|
3308 | 3308 | $w = round($this->wPrint * 0.23, 0); |
3309 | 3309 | $texto = 'INSCRIÇÃO MUNICIPAL'; |
3310 | 3310 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
@@ -3315,7 +3315,7 @@ discard block |
||
3315 | 3315 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
3316 | 3316 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'L', 0, ''); |
3317 | 3317 | //VALOR TOTAL DOS SERVIÇOS |
3318 | - $x += $w; |
|
3318 | + $x += $w; |
|
3319 | 3319 | $texto = 'VALOR TOTAL DOS SERVIÇOS'; |
3320 | 3320 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
3321 | 3321 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -3329,7 +3329,7 @@ discard block |
||
3329 | 3329 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
3330 | 3330 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'B', 'R', 0, ''); |
3331 | 3331 | //BASE DE CÁLCULO DO ISSQN |
3332 | - $x += $w; |
|
3332 | + $x += $w; |
|
3333 | 3333 | $texto = 'BASE DE CÁLCULO DO ISSQN'; |
3334 | 3334 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
3335 | 3335 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -3394,13 +3394,13 @@ discard block |
||
3394 | 3394 | |
3395 | 3395 | //INFORMAÇÕES COMPLEMENTARES |
3396 | 3396 | $texto = "INFORMAÇÕES COMPLEMENTARES"; |
3397 | - $y += 3; |
|
3397 | + $y += 3; |
|
3398 | 3398 | $w = $this->wAdic; |
3399 | 3399 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => 'B']; |
3400 | 3400 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 1, ''); |
3401 | 3401 | //o texto com os dados adicionais foi obtido na função montaDANFE |
3402 | 3402 | //e carregado em uma propriedade privada da classe |
3403 | - $y += 1; |
|
3403 | + $y += 1; |
|
3404 | 3404 | $aFont = ['font' => $this->fontePadrao, 'size' => $this->textadicfontsize * $this->pdf->k, 'style' => '']; |
3405 | 3405 | //$aFont = ['font'=>$this->fontePadrao, 'size'=> 5, 'style'=>'']; |
3406 | 3406 | $this->pdf->textBox($x, $y + 2, $w - 2, $h, $this->textoAdic, $aFont, 'T', 'L', 0, '', false); |
@@ -3445,7 +3445,7 @@ discard block |
||
3445 | 3445 | $texto = "CONTINGÊNCIA SVC-RS\n" . $dhCont . "\n" . $xJust; |
3446 | 3446 | break; |
3447 | 3447 | } |
3448 | - $y += 2; |
|
3448 | + $y += 2; |
|
3449 | 3449 | $aFont = ['font' => $this->fontePadrao, 'size' => 7, 'style' => '']; |
3450 | 3450 | $this->pdf->textBox($x, $y, $w - 2, $h, $texto, $aFont, 'T', 'L', 0, '', false); |
3451 | 3451 | |
@@ -3500,7 +3500,7 @@ discard block |
||
3500 | 3500 | $tpNF = $this->ide->getElementsByTagName('tpNF')->item(0)->nodeValue; |
3501 | 3501 | if ($tpNF == '0') { |
3502 | 3502 | //NFe de Entrada |
3503 | - $emitente = ''; |
|
3503 | + $emitente = ''; |
|
3504 | 3504 | $emitente .= $this->dest->getElementsByTagName("xNome")->item(0)->nodeValue . " - "; |
3505 | 3505 | $emitente .= $this->enderDest->getElementsByTagName("xLgr")->item(0)->nodeValue . ", "; |
3506 | 3506 | $emitente .= $this->enderDest->getElementsByTagName("nro")->item(0)->nodeValue . " - "; |
@@ -3553,7 +3553,7 @@ discard block |
||
3553 | 3553 | $texto .= "AO LADO"; |
3554 | 3554 | } |
3555 | 3555 | $texto .= ". EMISSÃO: "; |
3556 | - $dEmi = !empty($this->ide->getElementsByTagName("dEmi")->item(0)->nodeValue) ? |
|
3556 | + $dEmi = !empty($this->ide->getElementsByTagName("dEmi")->item(0)->nodeValue) ? |
|
3557 | 3557 | $this->ide->getElementsByTagName("dEmi")->item(0)->nodeValue : ''; |
3558 | 3558 | if ($dEmi == '') { |
3559 | 3559 | $dEmi = !empty($this->ide->getElementsByTagName("dhEmi")->item(0)->nodeValue) ? |
@@ -3579,12 +3579,12 @@ discard block |
||
3579 | 3579 | $this->pdf->textBox($x1, $y, $w1, 18, $texto, $aFont, 'C', 'C', 1, ''); |
3580 | 3580 | //DATA DE RECEBIMENTO |
3581 | 3581 | $texto = "DATA DE RECEBIMENTO"; |
3582 | - $y += $h; |
|
3582 | + $y += $h; |
|
3583 | 3583 | $w2 = round($this->wPrint * 0.17, 0); //35; |
3584 | 3584 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
3585 | 3585 | $this->pdf->textBox($x, $y, $w2, 8, $texto, $aFont, 'T', 'L', 1, ''); |
3586 | 3586 | //IDENTIFICAÇÃO E ASSINATURA DO RECEBEDOR |
3587 | - $x += $w2; |
|
3587 | + $x += $w2; |
|
3588 | 3588 | $w3 = $w - $w2; |
3589 | 3589 | $texto = "IDENTIFICAÇÃO E ASSINATURA DO RECEBEDOR"; |
3590 | 3590 | $this->pdf->textBox($x, $y, $w3, 8, $texto, $aFont, 'T', 'L', 1, ''); |
@@ -3616,7 +3616,7 @@ discard block |
||
3616 | 3616 | $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
3617 | 3617 | $this->pdf->textBox90($x, $y, $w2, 8, $texto, $aFont, 'T', 'L', 1, ''); |
3618 | 3618 | //IDENTIFICAÇÃO E ASSINATURA DO RECEBEDOR |
3619 | - $y -= $w2; |
|
3619 | + $y -= $w2; |
|
3620 | 3620 | $w3 = $w - $w2; |
3621 | 3621 | $texto = "IDENTIFICAÇÃO E ASSINATURA DO RECEBEDOR"; |
3622 | 3622 | $aFont = ['font' => $this->fontePadrao, 'size' => 5.7, 'style' => '']; |
@@ -3734,7 +3734,7 @@ discard block |
||
3734 | 3734 | $cnpj = $this->formatField(substr($chave_acesso, 6, 14), "##.###.###/####-##"); |
3735 | 3735 | $serie = substr($chave_acesso, 22, 3); |
3736 | 3736 | $numero = substr($chave_acesso, 25, 9); |
3737 | - $saida .= sprintf($formaNfeRef, $serie, $numero, $cnpj, $data, $chave_acessoF); |
|
3737 | + $saida .= sprintf($formaNfeRef, $serie, $numero, $cnpj, $data, $chave_acessoF); |
|
3738 | 3738 | } |
3739 | 3739 | $refNF = $nfRef->getElementsByTagName('refNF'); |
3740 | 3740 | foreach ($refNF as $umaRefNFe) { |
@@ -3745,7 +3745,7 @@ discard block |
||
3745 | 3745 | $numero = $umaRefNFe->getElementsByTagName('nNF')->item(0)->nodeValue; |
3746 | 3746 | $data = substr($data, 2, 2) . "/20" . substr($data, 0, 2); |
3747 | 3747 | $cnpj = $this->formatField($cnpj, "##.###.###/####-##"); |
3748 | - $saida .= sprintf($formaNfRef, $serie, $numero, $cnpj, $data, $mod); |
|
3748 | + $saida .= sprintf($formaNfRef, $serie, $numero, $cnpj, $data, $mod); |
|
3749 | 3749 | } |
3750 | 3750 | $refCTe = $nfRef->getElementsByTagName('refCTe'); |
3751 | 3751 | foreach ($refCTe as $chave_acessoRef) { |
@@ -3755,7 +3755,7 @@ discard block |
||
3755 | 3755 | $cnpj = $this->formatField(substr($chave_acesso, 6, 14), "##.###.###/####-##"); |
3756 | 3756 | $serie = substr($chave_acesso, 22, 3); |
3757 | 3757 | $numero = substr($chave_acesso, 25, 9); |
3758 | - $saida .= sprintf($formaCTeRef, $serie, $numero, $cnpj, $data, $chave_acessoF); |
|
3758 | + $saida .= sprintf($formaCTeRef, $serie, $numero, $cnpj, $data, $chave_acessoF); |
|
3759 | 3759 | } |
3760 | 3760 | $refECF = $nfRef->getElementsByTagName('refECF'); |
3761 | 3761 | foreach ($refECF as $umaRefNFe) { |
@@ -3768,8 +3768,7 @@ discard block |
||
3768 | 3768 | foreach ($refNFP as $umaRefNFe) { |
3769 | 3769 | $data = $umaRefNFe->getElementsByTagName('AAMM')->item(0)->nodeValue; |
3770 | 3770 | $cnpj = !empty($umaRefNFe->getElementsByTagName('CNPJ')->item(0)->nodeValue) ? |
3771 | - $umaRefNFe->getElementsByTagName('CNPJ')->item(0)->nodeValue : |
|
3772 | - ''; |
|
3771 | + $umaRefNFe->getElementsByTagName('CNPJ')->item(0)->nodeValue : ''; |
|
3773 | 3772 | $cpf = !empty($umaRefNFe->getElementsByTagName('CPF')->item(0)->nodeValue) ? |
3774 | 3773 | $umaRefNFe->getElementsByTagName('CPF')->item(0)->nodeValue : ''; |
3775 | 3774 | $mod = $umaRefNFe->getElementsByTagName('mod')->item(0)->nodeValue; |