@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | $this->toma4 = $this->dom->getElementsByTagName("toma4")->item(0); |
| 212 | 212 | $this->toma03 = $this->dom->getElementsByTagName("toma3")->item(0); |
| 213 | 213 | //Tag tomador é identificado por toma03 na versão 2.00 |
| 214 | - if ($this->infCte->getAttribute("versao")=="2.00") { |
|
| 214 | + if ($this->infCte->getAttribute("versao") == "2.00") { |
|
| 215 | 215 | $this->toma03 = $this->dom->getElementsByTagName("toma03")->item(0); |
| 216 | 216 | } |
| 217 | 217 | //modal aquaviário |
@@ -456,7 +456,7 @@ discard block |
||
| 456 | 456 | } |
| 457 | 457 | $x = $xInic; |
| 458 | 458 | $r = $this->zObs($x, $y); |
| 459 | - $y = $y-6; |
|
| 459 | + $y = $y - 6; |
|
| 460 | 460 | switch ($this->modal) { |
| 461 | 461 | case '1': |
| 462 | 462 | $y += 25.9; |
@@ -659,7 +659,7 @@ discard block |
||
| 659 | 659 | 'font' => $this->fontePadrao, |
| 660 | 660 | 'size' => 7, |
| 661 | 661 | 'style' => ''); |
| 662 | - $fone = $this->pSimpleGetValue($this->enderEmit, "fone")!=""? $this->zFormatFone($this->enderEmit):''; |
|
| 662 | + $fone = $this->pSimpleGetValue($this->enderEmit, "fone") != "" ? $this->zFormatFone($this->enderEmit) : ''; |
|
| 663 | 663 | $lgr = $this->pSimpleGetValue($this->enderEmit, "xLgr"); |
| 664 | 664 | $nro = $this->pSimpleGetValue($this->enderEmit, "nro"); |
| 665 | 665 | $cpl = $this->pSimpleGetValue($this->enderEmit, "xCpl"); |
@@ -752,31 +752,31 @@ discard block |
||
| 752 | 752 | $this->pdf->Line($x, $y1 + 8, $w + 3, $y1 + 8); |
| 753 | 753 | $toma = $this->pSimpleGetValue($this->ide, "indGlobalizado"); |
| 754 | 754 | //0-Remetente;1-Expedidor;2-Recebedor;3-Destinatário;4 - Outros |
| 755 | - if ($toma==1) { |
|
| 755 | + if ($toma == 1) { |
|
| 756 | 756 | $aFont = array( |
| 757 | 757 | 'font' => $this->fontePadrao, |
| 758 | 758 | 'size' => 11, |
| 759 | 759 | 'style' => ''); |
| 760 | - $this->pTextBox($x-14.5, $y2 + 3.5, $w * 0.5, $h1, 'X', $aFont, 'T', 'C', 0, '', false); |
|
| 760 | + $this->pTextBox($x - 14.5, $y2 + 3.5, $w * 0.5, $h1, 'X', $aFont, 'T', 'C', 0, '', false); |
|
| 761 | 761 | } else { |
| 762 | 762 | $aFont = array( |
| 763 | 763 | 'font' => $this->fontePadrao, |
| 764 | 764 | 'size' => 11, |
| 765 | 765 | 'style' => ''); |
| 766 | - $this->pTextBox($x+3.5, $y2 + 3.5, $w * 0.5, $h1, 'X', $aFont, 'T', 'C', 0, '', false); |
|
| 766 | + $this->pTextBox($x + 3.5, $y2 + 3.5, $w * 0.5, $h1, 'X', $aFont, 'T', 'C', 0, '', false); |
|
| 767 | 767 | } |
| 768 | 768 | $aFont = $this->formatNegrito; |
| 769 | - $this->pdf->Line($x+5, $x+48, $x+5, $x+52); |
|
| 770 | - $this->pdf->Line($x+10, $x+48, $x+10, $x+52); |
|
| 771 | - $this->pdf->Line($x+5, $x+48, $x+10, $x+48); |
|
| 772 | - $this->pdf->Line($x+5, $x+52, $x+10, $x+52); |
|
| 773 | - $this->pTextBox($x-9, $y2+1.4 + 3, $w * 0.5, $h1, 'SIM', $aFont, 'T', 'C', 0, '', false); |
|
| 769 | + $this->pdf->Line($x + 5, $x + 48, $x + 5, $x + 52); |
|
| 770 | + $this->pdf->Line($x + 10, $x + 48, $x + 10, $x + 52); |
|
| 771 | + $this->pdf->Line($x + 5, $x + 48, $x + 10, $x + 48); |
|
| 772 | + $this->pdf->Line($x + 5, $x + 52, $x + 10, $x + 52); |
|
| 773 | + $this->pTextBox($x - 9, $y2 + 1.4 + 3, $w * 0.5, $h1, 'SIM', $aFont, 'T', 'C', 0, '', false); |
|
| 774 | 774 | |
| 775 | - $this->pdf->Line($x+23, $x+48, $x+23, $x+52); |
|
| 776 | - $this->pdf->Line($x+28, $x+48, $x+28, $x+52); |
|
| 777 | - $this->pdf->Line($x+23, $x+48, $x+28, $x+48); |
|
| 778 | - $this->pdf->Line($x+23, $x+52, $x+28, $x+52); |
|
| 779 | - $this->pTextBox($x+9.8, $y2+1.4 + 3, $w * 0.5, $h1, 'NÃO', $aFont, 'T', 'C', 0, '', false); |
|
| 775 | + $this->pdf->Line($x + 23, $x + 48, $x + 23, $x + 52); |
|
| 776 | + $this->pdf->Line($x + 28, $x + 48, $x + 28, $x + 52); |
|
| 777 | + $this->pdf->Line($x + 23, $x + 48, $x + 28, $x + 48); |
|
| 778 | + $this->pdf->Line($x + 23, $x + 52, $x + 28, $x + 52); |
|
| 779 | + $this->pTextBox($x + 9.8, $y2 + 1.4 + 3, $w * 0.5, $h1, 'NÃO', $aFont, 'T', 'C', 0, '', false); |
|
| 780 | 780 | |
| 781 | 781 | //FORMA DE PAGAMENTO |
| 782 | 782 | $texto = 'INFORMAÇÕES DO CT-E GLOBALIZADO'; |
@@ -785,7 +785,7 @@ discard block |
||
| 785 | 785 | 'font' => $this->fontePadrao, |
| 786 | 786 | 'size' => 8, |
| 787 | 787 | 'style' => ''); |
| 788 | - $this->pTextBox($x+2 + $wa + 4.5, $y2-0.7, $w * 0.5, $h1, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 788 | + $this->pTextBox($x + 2 + $wa + 4.5, $y2 - 0.7, $w * 0.5, $h1, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 789 | 789 | $forma = $this->pSimpleGetValue($this->ide, "forPag"); |
| 790 | 790 | //################################################################## |
| 791 | 791 | //coluna direita |
@@ -893,7 +893,7 @@ discard block |
||
| 893 | 893 | 'style' => ''); |
| 894 | 894 | $this->pTextBox($xa, $y + 1, $wa, $h, $texto, $aFont, 'T', 'C', 0, ''); |
| 895 | 895 | //$texto = '1/1'; |
| 896 | - $texto = $pag."/".$totPag; |
|
| 896 | + $texto = $pag . "/" . $totPag; |
|
| 897 | 897 | $aFont = $this->formatNegrito; |
| 898 | 898 | $this->pTextBox($xa, $y + 5, $wa, $h, $texto, $aFont, 'T', 'C', 0, ''); |
| 899 | 899 | $this->pdf->Line($xa + $wa, $y, $xa + $wa, $y + $h + 1); |
@@ -1095,7 +1095,7 @@ discard block |
||
| 1095 | 1095 | $this->pdf->SetTextColor(0, 0, 0); |
| 1096 | 1096 | } |
| 1097 | 1097 | //indicar sem valor |
| 1098 | - if ($tpAmb != 1 && $this->preVisualizar=='0') { // caso não seja uma DA de produção |
|
| 1098 | + if ($tpAmb != 1 && $this->preVisualizar == '0') { // caso não seja uma DA de produção |
|
| 1099 | 1099 | $x = 10; |
| 1100 | 1100 | if ($this->orientacao == 'P') { |
| 1101 | 1101 | $y = round($this->hPrint * 2 / 3, 0); |
@@ -1118,7 +1118,7 @@ discard block |
||
| 1118 | 1118 | $texto = "AMBIENTE DE HOMOLOGAÇÃO"; |
| 1119 | 1119 | $this->pTextBox($x, $y + 14, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
| 1120 | 1120 | $this->pdf->SetTextColor(0, 0, 0); |
| 1121 | - } elseif ($this->preVisualizar=='1') { // caso seja uma DA de Pré-Visualização |
|
| 1121 | + } elseif ($this->preVisualizar == '1') { // caso seja uma DA de Pré-Visualização |
|
| 1122 | 1122 | $h = 5; |
| 1123 | 1123 | $w = $maxW - (2 * 10); |
| 1124 | 1124 | $x = 55; |
@@ -1136,14 +1136,14 @@ discard block |
||
| 1136 | 1136 | 'size' => 41, |
| 1137 | 1137 | 'style' => 'B'); |
| 1138 | 1138 | $texto = "Sem Validade Jurídica"; |
| 1139 | - $this->pTextBox90($x+20, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 1139 | + $this->pTextBox90($x + 20, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 1140 | 1140 | $this->pdf->SetTextColor(90, 90, 90); |
| 1141 | 1141 | $texto = "SEM VALOR FISCAL"; |
| 1142 | 1142 | $aFont = array( |
| 1143 | 1143 | 'font' => $this->fontePadrao, |
| 1144 | 1144 | 'size' => 48, |
| 1145 | 1145 | 'style' => 'B'); |
| 1146 | - $this->pTextBox90($x+40, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 1146 | + $this->pTextBox90($x + 40, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 1147 | 1147 | $this->pdf->SetTextColor(0, 0, 0); // voltar a cor default |
| 1148 | 1148 | } else { |
| 1149 | 1149 | $x = 10; |
@@ -1230,7 +1230,7 @@ discard block |
||
| 1230 | 1230 | 'size' => 6, |
| 1231 | 1231 | 'style' => ''); |
| 1232 | 1232 | $this->pTextBox($x, $y, $w, 4, $texto, $aFont, 'T', 'L', 0, ''); |
| 1233 | - $texto = 'Desenvolvido por '.$this->nomeDesenvolvedor . ' - '. $this->siteDesenvolvedor; |
|
| 1233 | + $texto = 'Desenvolvido por ' . $this->nomeDesenvolvedor . ' - ' . $this->siteDesenvolvedor; |
|
| 1234 | 1234 | $aFont = array( |
| 1235 | 1235 | 'font' => $this->fontePadrao, |
| 1236 | 1236 | 'size' => 6, |
@@ -1321,7 +1321,7 @@ discard block |
||
| 1321 | 1321 | $aFont = $this->formatPadrao; |
| 1322 | 1322 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1323 | 1323 | //$texto = $this->zFormatFone($this->rem); |
| 1324 | - $texto = $this->pSimpleGetValue($this->rem, "fone")!=""? $this->zFormatFone($this->rem):''; |
|
| 1324 | + $texto = $this->pSimpleGetValue($this->rem, "fone") != "" ? $this->zFormatFone($this->rem) : ''; |
|
| 1325 | 1325 | $aFont = $this->formatNegrito; |
| 1326 | 1326 | $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1327 | 1327 | } //fim da função remetenteDACTE |
@@ -1408,7 +1408,7 @@ discard block |
||
| 1408 | 1408 | $aFont = $this->formatPadrao; |
| 1409 | 1409 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1410 | 1410 | //$texto = $this->zFormatFone($this->dest); |
| 1411 | - $texto = $this->pSimpleGetValue($this->dest, "fone")!=""? $this->zFormatFone($this->dest):''; |
|
| 1411 | + $texto = $this->pSimpleGetValue($this->dest, "fone") != "" ? $this->zFormatFone($this->dest) : ''; |
|
| 1412 | 1412 | $aFont = $this->formatNegrito; |
| 1413 | 1413 | $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1414 | 1414 | } //fim da função destinatarioDACTE |
@@ -1448,8 +1448,7 @@ discard block |
||
| 1448 | 1448 | $texto = $this->pSimpleGetValue($this->enderExped, "xLgr") . ', '; |
| 1449 | 1449 | $texto .= $this->pSimpleGetValue($this->enderExped, "nro"); |
| 1450 | 1450 | $texto .= $this->pSimpleGetValue($this->enderExped, "xCpl") != "" ? |
| 1451 | - ' - ' . $this->pSimpleGetValue($this->enderExped, "xCpl") : |
|
| 1452 | - ''; |
|
| 1451 | + ' - ' . $this->pSimpleGetValue($this->enderExped, "xCpl") : ''; |
|
| 1453 | 1452 | } else { |
| 1454 | 1453 | $texto = ''; |
| 1455 | 1454 | } |
@@ -1504,7 +1503,7 @@ discard block |
||
| 1504 | 1503 | $aFont = $this->formatPadrao; |
| 1505 | 1504 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1506 | 1505 | if (isset($this->exped)) { |
| 1507 | - $texto = $this->pSimpleGetValue($this->exped, "fone")!=""? $this->zFormatFone($this->exped):''; |
|
| 1506 | + $texto = $this->pSimpleGetValue($this->exped, "fone") != "" ? $this->zFormatFone($this->exped) : ''; |
|
| 1508 | 1507 | $aFont = $this->formatNegrito; |
| 1509 | 1508 | $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1510 | 1509 | } |
@@ -1545,8 +1544,7 @@ discard block |
||
| 1545 | 1544 | $texto = $this->pSimpleGetValue($this->enderReceb, "xLgr") . ', '; |
| 1546 | 1545 | $texto .= $this->pSimpleGetValue($this->enderReceb, "nro"); |
| 1547 | 1546 | $texto .= ($this->pSimpleGetValue($this->enderReceb, "xCpl") != "") ? |
| 1548 | - ' - ' . $this->pSimpleGetValue($this->enderReceb, "xCpl") : |
|
| 1549 | - ''; |
|
| 1547 | + ' - ' . $this->pSimpleGetValue($this->enderReceb, "xCpl") : ''; |
|
| 1550 | 1548 | } else { |
| 1551 | 1549 | $texto = ''; |
| 1552 | 1550 | } |
@@ -1601,7 +1599,7 @@ discard block |
||
| 1601 | 1599 | $aFont = $this->formatPadrao; |
| 1602 | 1600 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1603 | 1601 | if (isset($this->receb)) { |
| 1604 | - $texto = $this->pSimpleGetValue($this->receb, "fone")!=""? $this->zFormatFone($this->receb):''; |
|
| 1602 | + $texto = $this->pSimpleGetValue($this->receb, "fone") != "" ? $this->zFormatFone($this->receb) : ''; |
|
| 1605 | 1603 | $aFont = $this->formatNegrito; |
| 1606 | 1604 | $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1607 | 1605 | } |
@@ -1691,7 +1689,7 @@ discard block |
||
| 1691 | 1689 | $texto = 'FONE'; |
| 1692 | 1690 | $aFont = $this->formatPadrao; |
| 1693 | 1691 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1694 | - $texto = $this->pSimpleGetValue($this->toma, "fone")!=""? $this->zFormatFone($this->toma):''; |
|
| 1692 | + $texto = $this->pSimpleGetValue($this->toma, "fone") != "" ? $this->zFormatFone($this->toma) : ''; |
|
| 1695 | 1693 | $aFont = $this->formatNegrito; |
| 1696 | 1694 | $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1697 | 1695 | } //fim da função tomadorDACTE |
@@ -1759,46 +1757,46 @@ discard block |
||
| 1759 | 1757 | 'font' => $this->fontePadrao, |
| 1760 | 1758 | 'size' => 5, |
| 1761 | 1759 | 'style' => ''); |
| 1762 | - $this->pTextBox($x+8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1760 | + $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1763 | 1761 | $texto = number_format($qCarga, 3, ",", "."); |
| 1764 | 1762 | $aFont = array( |
| 1765 | 1763 | 'font' => $this->fontePadrao, |
| 1766 | 1764 | 'size' => 7, |
| 1767 | 1765 | 'style' => 'B'); |
| 1768 | - $this->pTextBox($x+2, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1766 | + $this->pTextBox($x + 2, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1769 | 1767 | $x = $w * 0.12; |
| 1770 | - $this->pdf->Line($x+13.5, $y, $x+13.5, $y + 9); |
|
| 1768 | + $this->pdf->Line($x + 13.5, $y, $x + 13.5, $y + 9); |
|
| 1771 | 1769 | $texto = 'PESO BASE CÁLCULO (KG)'; |
| 1772 | 1770 | $aFont = array( |
| 1773 | 1771 | 'font' => $this->fontePadrao, |
| 1774 | 1772 | 'size' => 5, |
| 1775 | 1773 | 'style' => ''); |
| 1776 | - $this->pTextBox($x+20, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1774 | + $this->pTextBox($x + 20, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1777 | 1775 | $texto = number_format($qCarga, 3, ",", "."); |
| 1778 | 1776 | $aFont = array( |
| 1779 | 1777 | 'font' => $this->fontePadrao, |
| 1780 | 1778 | 'size' => 7, |
| 1781 | 1779 | 'style' => 'B'); |
| 1782 | - $this->pTextBox($x+17, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1780 | + $this->pTextBox($x + 17, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1783 | 1781 | $x = $w * 0.24; |
| 1784 | - $this->pdf->Line($x+25, $y, $x+25, $y + 9); |
|
| 1782 | + $this->pdf->Line($x + 25, $y, $x + 25, $y + 9); |
|
| 1785 | 1783 | $texto = 'PESO AFERIDO (KG)'; |
| 1786 | 1784 | $aFont = array( |
| 1787 | 1785 | 'font' => $this->fontePadrao, |
| 1788 | 1786 | 'size' => 5, |
| 1789 | 1787 | 'style' => ''); |
| 1790 | - $this->pTextBox($x+35, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1788 | + $this->pTextBox($x + 35, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1791 | 1789 | $texto = number_format($qCarga, 3, ",", "."); |
| 1792 | 1790 | $aFont = array( |
| 1793 | 1791 | 'font' => $this->fontePadrao, |
| 1794 | 1792 | 'size' => 7, |
| 1795 | 1793 | 'style' => 'B'); |
| 1796 | - $this->pTextBox($x+28, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1794 | + $this->pTextBox($x + 28, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1797 | 1795 | $x = $w * 0.36; |
| 1798 | - $this->pdf->Line($x+41.3, $y, $x+41.3, $y + 9); |
|
| 1796 | + $this->pdf->Line($x + 41.3, $y, $x + 41.3, $y + 9); |
|
| 1799 | 1797 | $texto = 'CUBAGEM(M3)'; |
| 1800 | 1798 | $aFont = $this->formatPadrao; |
| 1801 | - $this->pTextBox($x+60, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1799 | + $this->pTextBox($x + 60, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1802 | 1800 | $qCarga = ''; |
| 1803 | 1801 | foreach ($this->infQ as $infQ) { |
| 1804 | 1802 | if ($this->pSimpleGetValue($infQ, "cUnid") == '00') { |
@@ -1810,12 +1808,12 @@ discard block |
||
| 1810 | 1808 | 'font' => $this->fontePadrao, |
| 1811 | 1809 | 'size' => 7, |
| 1812 | 1810 | 'style' => 'B'); |
| 1813 | - $this->pTextBox($x+50, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1811 | + $this->pTextBox($x + 50, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1814 | 1812 | $x = $w * 0.45; |
| 1815 | 1813 | //$this->pdf->Line($x+37, $y, $x+37, $y + 9); |
| 1816 | 1814 | $texto = 'QTDE(VOL)'; |
| 1817 | 1815 | $aFont = $this->formatPadrao; |
| 1818 | - $this->pTextBox($x+85, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1816 | + $this->pTextBox($x + 85, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1819 | 1817 | $qCarga = ''; |
| 1820 | 1818 | foreach ($this->infQ as $infQ) { |
| 1821 | 1819 | if ($this->pSimpleGetValue($infQ, "cUnid") == '03') { |
@@ -1827,9 +1825,9 @@ discard block |
||
| 1827 | 1825 | 'font' => $this->fontePadrao, |
| 1828 | 1826 | 'size' => 7, |
| 1829 | 1827 | 'style' => 'B'); |
| 1830 | - $this->pTextBox($x+85, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1828 | + $this->pTextBox($x + 85, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 1831 | 1829 | $x = $w * 0.53; |
| 1832 | - $this->pdf->Line($x+56, $y, $x+56, $y + 9); |
|
| 1830 | + $this->pdf->Line($x + 56, $y, $x + 56, $y + 9); |
|
| 1833 | 1831 | /*$texto = 'NOME DA SEGURADORA'; |
| 1834 | 1832 | $aFont = $this->formatPadrao; |
| 1835 | 1833 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
@@ -2008,7 +2006,7 @@ discard block |
||
| 2008 | 2006 | $aFont = $this->formatPadrao; |
| 2009 | 2007 | $this->pTextBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 2010 | 2008 | |
| 2011 | - $wCol02=0.15; |
|
| 2009 | + $wCol02 = 0.15; |
|
| 2012 | 2010 | $x += $w * $wCol02; |
| 2013 | 2011 | $this->pdf->Line($x, $y, $x, $y + 9.5); |
| 2014 | 2012 | $texto = 'ALÍQ ICMS'; |
@@ -2287,7 +2285,7 @@ discard block |
||
| 2287 | 2285 | $this->arrayNFe[] = $chaveNFe; |
| 2288 | 2286 | } |
| 2289 | 2287 | $qtdeNFe = 1; |
| 2290 | - if (count($this->arrayNFe) >15) { |
|
| 2288 | + if (count($this->arrayNFe) > 15) { |
|
| 2291 | 2289 | $this->flagDocOrigContinuacao = 1; |
| 2292 | 2290 | $qtdeNFe = count($this->arrayNFe); |
| 2293 | 2291 | } |
@@ -2467,9 +2465,9 @@ discard block |
||
| 2467 | 2465 | //$h = 6 + 3; // de altura do texto (primeira linha |
| 2468 | 2466 | //$h = 9 + 3.5 ;// segunda linha |
| 2469 | 2467 | //$h = 9 + 3.5+ 3.5 ;// segunda linha |
| 2470 | - $h = (( ( count($this->arrayNFe)/2 ) - 9) * 3.5)+9; |
|
| 2471 | - if (count($this->arrayNFe)%2 !=0) { |
|
| 2472 | - $h = $h+3.5; |
|
| 2468 | + $h = (((count($this->arrayNFe) / 2) - 9) * 3.5) + 9; |
|
| 2469 | + if (count($this->arrayNFe) % 2 != 0) { |
|
| 2470 | + $h = $h + 3.5; |
|
| 2473 | 2471 | } // Caso tenha apenas 1 registro na ultima linha |
| 2474 | 2472 | |
| 2475 | 2473 | $texto = 'DOCUMENTOS ORIGINÁRIOS - CONTINUACÃO'; |
@@ -2527,7 +2525,7 @@ discard block |
||
| 2527 | 2525 | $yIniDados += 3; |
| 2528 | 2526 | |
| 2529 | 2527 | while ($contador < (count($this->arrayNFe))) { |
| 2530 | - if ($contador%(116*($i-1)) == 0) { |
|
| 2528 | + if ($contador % (116 * ($i - 1)) == 0) { |
|
| 2531 | 2529 | // $contador++; |
| 2532 | 2530 | break; |
| 2533 | 2531 | } |
@@ -2670,14 +2668,14 @@ discard block |
||
| 2670 | 2668 | $texto .= $xObs; |
| 2671 | 2669 | } |
| 2672 | 2670 | $textoObs = explode("Motorista:", $texto); |
| 2673 | - $textoObs[1] = isset($textoObs[1]) ? "Motorista: ".$textoObs[1]: ''; |
|
| 2671 | + $textoObs[1] = isset($textoObs[1]) ? "Motorista: " . $textoObs[1] : ''; |
|
| 2674 | 2672 | $texto .= $this->pSimpleGetValue($this->imp, "infAdFisco", "\r\n"); |
| 2675 | 2673 | $aFont = array( |
| 2676 | 2674 | 'font' => $this->fontePadrao, |
| 2677 | 2675 | 'size' => 7.5, |
| 2678 | 2676 | 'style' => ''); |
| 2679 | 2677 | $this->pTextBox($x, $y, $w, $h, $textoObs[0], $aFont, 'T', 'L', 0, '', false); |
| 2680 | - $this->pTextBox($x, $y+11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false); |
|
| 2678 | + $this->pTextBox($x, $y + 11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false); |
|
| 2681 | 2679 | } //fim da função obsDACTE |
| 2682 | 2680 | |
| 2683 | 2681 | /** |
@@ -2716,11 +2714,11 @@ discard block |
||
| 2716 | 2714 | $this->pTextBox($x, $y + 3, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 2717 | 2715 | $x += $w * 0.23; |
| 2718 | 2716 | |
| 2719 | - $this->pdf->Line($x-20, $y, $x-20, $y + 6); // LINHA A FRENTE DA RNTRC DA EMPRESA |
|
| 2717 | + $this->pdf->Line($x - 20, $y, $x - 20, $y + 6); // LINHA A FRENTE DA RNTRC DA EMPRESA |
|
| 2720 | 2718 | |
| 2721 | 2719 | $texto = 'ESTE CONHECIMENTO DE TRANSPORTE ATENDE À LEGISLAÇÃO DE TRANSPORTE RODOVIÁRIO EM VIGOR'; |
| 2722 | 2720 | $aFont = $this->formatPadrao; |
| 2723 | - $this->pTextBox($x-20, $y + 3, $w * 0.50, $h, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 2721 | + $this->pTextBox($x - 20, $y + 3, $w * 0.50, $h, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 2724 | 2722 | } //fim da função zModalRod |
| 2725 | 2723 | |
| 2726 | 2724 | /** |
@@ -2754,13 +2752,13 @@ discard block |
||
| 2754 | 2752 | |
| 2755 | 2753 | $texto = 'CLASSE DA TARIFA'; |
| 2756 | 2754 | $aFont = $this->formatPadrao; |
| 2757 | - $this->pTextBox($x+50, $y, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2755 | + $this->pTextBox($x + 50, $y, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2758 | 2756 | $texto = 'CÓDIGO DA TARIFA'; |
| 2759 | 2757 | $aFont = $this->formatPadrao; |
| 2760 | - $this->pTextBox($x+80, $y, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2758 | + $this->pTextBox($x + 80, $y, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2761 | 2759 | $texto = 'VALOR DA TARIFA'; |
| 2762 | 2760 | $aFont = $this->formatPadrao; |
| 2763 | - $this->pTextBox($x+110, $y, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2761 | + $this->pTextBox($x + 110, $y, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2764 | 2762 | |
| 2765 | 2763 | $texto = $this->pSimpleGetValue($this->aereo, "nOCA"); |
| 2766 | 2764 | $aFont = $this->formatNegrito; |
@@ -3244,7 +3242,7 @@ discard block |
||
| 3244 | 3242 | */ |
| 3245 | 3243 | protected function zCanhoto($x = 0, $y = 0) |
| 3246 | 3244 | { |
| 3247 | - $this->zhDashedLine($x, $y+2, $this->wPrint, 0.1, 80); |
|
| 3245 | + $this->zhDashedLine($x, $y + 2, $this->wPrint, 0.1, 80); |
|
| 3248 | 3246 | $y = $y + 2; |
| 3249 | 3247 | $oldX = $x; |
| 3250 | 3248 | $oldY = $y; |
@@ -3283,7 +3281,7 @@ discard block |
||
| 3283 | 3281 | |
| 3284 | 3282 | $this->pdf->Line($x, $y, $x, $y + 16.5); |
| 3285 | 3283 | |
| 3286 | - $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n". "\r\n"; |
|
| 3284 | + $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n" . "\r\n"; |
|
| 3287 | 3285 | $texto .= ' INÍCIO DA PRESTAÇÃO - DATA/HORA'; |
| 3288 | 3286 | $aFont = array( |
| 3289 | 3287 | 'font' => $this->fontePadrao, |
@@ -3293,14 +3291,14 @@ discard block |
||
| 3293 | 3291 | $x = $oldX; |
| 3294 | 3292 | $y = $y + 5; |
| 3295 | 3293 | |
| 3296 | - $this->pdf->Line($x, $y+3, $w * 0.255, $y+3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
|
| 3294 | + $this->pdf->Line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
|
| 3297 | 3295 | |
| 3298 | 3296 | $texto = 'RG'; |
| 3299 | 3297 | $aFont = array( |
| 3300 | 3298 | 'font' => $this->fontePadrao, |
| 3301 | 3299 | 'size' => 6, |
| 3302 | 3300 | 'style' => ''); |
| 3303 | - $this->pTextBox($x, $y+3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3301 | + $this->pTextBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3304 | 3302 | $x += $w * 0.85; |
| 3305 | 3303 | |
| 3306 | 3304 | $this->pdf->Line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E |